From fab23592567013f184f768bc63b7656f6eadd50b Mon Sep 17 00:00:00 2001 From: TLSM Date: Fri, 30 Sep 2022 17:49:47 -0400 Subject: [PATCH] Fix userpage template logic for mobile ban display. --- files/templates/userpage.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/userpage.html b/files/templates/userpage.html index ce56d13ae..fea1071df 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -440,7 +440,7 @@ {% if u.unban_utc %}
{{u.unban_string}}
{% endif %} {% endif %} - {% if u.shadowbanned %} + {% if v and v.admin_level >= 2 and u.shadowbanned %}
SHADOWBANNED USER{% if u.ban_reason %}: {{u.ban_reason | safe}}{% endif %} (by @{{u.shadowbanned}})
{% endif %}