From f2d3e45fd3b21758fd12c0c4a23ce272cca18026 Mon Sep 17 00:00:00 2001 From: Macil Tech Date: Fri, 13 Jul 2012 11:03:22 -0600 Subject: Handle posts without filenames. If a post doesn't have a filename (such as because of a post event changing it), then don't show an empty filename with the post. --- templates/post_thread.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/post_thread.html') diff --git a/templates/post_thread.html b/templates/post_thread.html index da93c5dd..cf93bed0 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -20,7 +20,7 @@ , {{ post.ratio }} {% endif %} {% endif %} - {% if config.show_filename %} + {% if config.show_filename and post.filename %} , {% if post.filename|length > config.max_filename_display %} {{ post.filename|truncate(config.max_filename_display) }} -- cgit v1.3