Browse Source

Merge pull request #93 from towards-a-new-leftypol/revert-91-api-spoiler

Revert "Add spoiler information to the API"
pull/107/head
towards-a-new-leftypol 3 years ago
committed by GitHub
parent
commit
b03d4f7c54
  1. 1
      inc/api.php

1
inc/api.php

@ -93,7 +93,6 @@ class Api {
$dotPos = strrpos($file->file, '.');
$apiPost['ext'] = substr($file->file, $dotPos);
$apiPost['tim'] = substr($file->file, 0, $dotPos);
$apiPost['spoiler'] = $file->thumb === 'spoiler' ? 1 : 0;
if (isset ($file->hash) && $file->hash) {
$apiPost['md5'] = base64_encode(hex2bin($file->hash));
}

Loading…
Cancel
Save