add some stuff to the api, to match vichan's api at the request of a user. fixed the delete-stray-images script

This commit is contained in:
Your Name 2022-06-22 20:39:47 +02:00
parent 57df86557a
commit f1a48042c2
2 changed files with 5 additions and 2 deletions

View file

@ -23,10 +23,10 @@ foreach ($boards as $board) {
$valid_thumb = array();
while ($post = $query->fetch(PDO::FETCH_ASSOC)) {
$files = json_decode($post['files']);
$files = json_decode($post['files']);
foreach ($files as $i => $f) {
if ($f->file != 'deleted' && $f->file != 'spoiler' && $f->file != 'file'){
$valid_src[] = $f->filename;
$valid_src[] = $f->file;
$valid_thumb[] = $f->thumb;
}
}