summaryrefslogtreecommitdiff
path: root/templates/themes/recent/theme.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-06-19 02:23:24 +0200
committerczaks <marcin@6irc.net>2016-06-19 02:23:24 +0200
commitfed9065cf1fe759e20ec10baf0aba1309ee6f8ab (patch)
treee198fd0d2912b391acf976119adfae73a3474607 /templates/themes/recent/theme.php
parent356f46237c3281b09d1fcc1df4e19cb12947063e (diff)
skip non-image files in recent themes; fixes vichan-devel/vichan#185
Diffstat (limited to 'templates/themes/recent/theme.php')
-rw-r--r--templates/themes/recent/theme.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php
index 95921c35..a826048f 100644
--- a/templates/themes/recent/theme.php
+++ b/templates/themes/recent/theme.php
@@ -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']