diff --git a/boards/templates/boards/all_threads.html b/boards/templates/boards/all_threads.html --- a/boards/templates/boards/all_threads.html +++ b/boards/templates/boards/all_threads.html @@ -38,14 +38,16 @@ {% if tag %}
-
- {% with image=random_image_post.images.first %} - - {% endwith %} -
+ {% if random_image_post %} +
+ {% with image=random_image_post.images.first %} + + {% endwith %} +
+ {% endif %}