From b6e143975571675d071afd75fbfbd673c9b01bb7 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sat, 10 Aug 2019 11:57:57 +1000 Subject: [PATCH] Fixes Recent posts show nothing #157, because I forgot the length check. Reverts to use not because it is simpler than using default empty array and length --- templates/mod/recent_posts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html index 2a166723..e5a95ece 100644 --- a/templates/mod/recent_posts.html +++ b/templates/mod/recent_posts.html @@ -1,5 +1,5 @@ -{% if posts|default([])|length %} +{% if not posts %}

({% trans 'There are no active posts.' %})

{% else %}

Viewing last {{ limit|e }} posts