Revert "Add spoiler information to the API"
This commit is contained in:
parent
ad370baf9e
commit
54c1c7fabe
|
@ -93,7 +93,6 @@ class Api {
|
||||||
$dotPos = strrpos($file->file, '.');
|
$dotPos = strrpos($file->file, '.');
|
||||||
$apiPost['ext'] = substr($file->file, $dotPos);
|
$apiPost['ext'] = substr($file->file, $dotPos);
|
||||||
$apiPost['tim'] = substr($file->file, 0, $dotPos);
|
$apiPost['tim'] = substr($file->file, 0, $dotPos);
|
||||||
$apiPost['spoiler'] = $file->thumb === 'spoiler' ? 1 : 0;
|
|
||||||
if (isset ($file->hash) && $file->hash) {
|
if (isset ($file->hash) && $file->hash) {
|
||||||
$apiPost['md5'] = base64_encode(hex2bin($file->hash));
|
$apiPost['md5'] = base64_encode(hex2bin($file->hash));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue