skip non-image files in recent themes; fixes vichan-devel/vichan#185
This commit is contained in:
parent
356f46237c
commit
fed9065cf1
@ -65,7 +65,7 @@
|
||||
if (isset($post['files']))
|
||||
$files = json_decode($post['files']);
|
||||
|
||||
if ($files[0]->file == 'deleted') continue;
|
||||
if ($files[0]->file == 'deleted' || $files[0]->thumb == 'file') continue;
|
||||
|
||||
// board settings won't be available in the template file, so generate links now
|
||||
$post['link'] = $config['root'] . $board['dir'] . $config['dir']['res']
|
||||
|
Loading…
Reference in New Issue
Block a user