1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

skip non-image files in recent themes; fixes vichan-devel/vichan#185

This commit is contained in:
czaks 2016-06-19 02:23:24 +02:00
parent 356f46237c
commit fed9065cf1

View File

@ -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']