From 401b2f92e719805b1b9f2f798af4df42ef5ba36a Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 24 Mar 2023 13:56:27 +0200 Subject: [PATCH] fix #2 here https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3853278#context ---- a lot of crawlers apparently request this page which causes a "too many requests" error for all logged-out ppl who try to visit it --- files/templates/comments.html | 4 ++-- files/templates/post_actions.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index 08b46b24b..c20cbe5a0 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -384,7 +384,7 @@ {% endif %} - {% if not c.ghost or (v and v.admin_level >= PERMS['SEE_GHOST_VOTES']) %} + {% if v and (not c.ghost or v.admin_level >= PERMS['SEE_GHOST_VOTES']) %} Votes {% endif %} @@ -589,7 +589,7 @@