From d44bf347fd2e0fecfc5eac82b44427ffd658a74d Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 1 May 2023 21:33:41 +0300 Subject: [PATCH] fix distinguishing others' comments on mobile --- files/templates/comments.html | 4 ++-- files/templates/post_admin_actions_mobile.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index bfd519b6b..edd949b3f 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -422,7 +422,7 @@ API App {% endif %} -{% if v.admin_level >= PERMS['POST_COMMENT_DISTINGUISH'] and (v.id == c.author_id or v.admin_level >= PERMS['POST_COMMENT_MODERATION']) %} +{% if v.admin_level >= PERMS['POST_COMMENT_DISTINGUISH'] %} {% endif %} @@ -671,7 +671,7 @@ API App {% endif %} - {% if v.id == c.author_id %} + {% if v.admin_level >= PERMS['POST_COMMENT_DISTINGUISH'] %} {% endif %} diff --git a/files/templates/post_admin_actions_mobile.html b/files/templates/post_admin_actions_mobile.html index 73003626b..2592f21ab 100644 --- a/files/templates/post_admin_actions_mobile.html +++ b/files/templates/post_admin_actions_mobile.html @@ -21,7 +21,7 @@ {% endif %} - {% if v.admin_level >= PERMS['POST_COMMENT_DISTINGUISH'] and (v.id == p.author.id or v.admin_level >= PERMS['POST_COMMENT_MODERATION']) %} + {% if v.admin_level >= PERMS['POST_COMMENT_DISTINGUISH'] %}