From 91ccc8e5903b3268e9f0ed79876ff90235882fe9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 31 Jan 2024 20:54:38 +0200 Subject: [PATCH] fix issue with hidden posts --- files/templates/post_listing.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/files/templates/post_listing.html b/files/templates/post_listing.html index fcaedb88a..2d4c71bff 100644 --- a/files/templates/post_listing.html +++ b/files/templates/post_listing.html @@ -12,7 +12,12 @@ {% set disable_votes = request.path.startswith('/@') and v and v.admin_level < PERMS['ENABLE_VOTE_BUTTONS_ON_USER_PAGE'] %} +{% set post_permalinks = [] %} {% for p in listing if can_see(v, p) %} +
+ {{post_permalinks.append(p.permalink)}} +
+ {% set ups=p.upvotes %} @@ -249,11 +254,5 @@ {% endif %} -{% set post_permalinks = [] %} -
- {% for p in listing %} - {{post_permalinks.append(p.permalink)}} - {% endfor %} -