From 5d4c9abc151855ffa87938df06afcf318e1af2f1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 28 Feb 2023 19:30:57 +0200 Subject: [PATCH] show shaowbanned bios to jannoids --- files/templates/user_listing.html | 2 +- files/templates/userpage/banner.html | 4 ++-- files/templates/util/html_head.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/templates/user_listing.html b/files/templates/user_listing.html index 7d8fff50ea..70762a8700 100644 --- a/files/templates/user_listing.html +++ b/files/templates/user_listing.html @@ -32,7 +32,7 @@
Last active on
{%- endif %} - {% if FEATURES['USERS_PROFILE_BODYTEXT'] and not hide_bios and u.bio_html and (not u.shadowbanned or (v and v.id == u.id)) %} + {% if FEATURES['USERS_PROFILE_BODYTEXT'] and not hide_bios and u.bio_html and (not u.shadowbanned or (v and (v.id == u.id or v.can_see_shadowbanned))) %}
{{u.bio_html | safe}}
{% endif %} diff --git a/files/templates/userpage/banner.html b/files/templates/userpage/banner.html index 2de0c7c5e2..d0828c688a 100644 --- a/files/templates/userpage/banner.html +++ b/files/templates/userpage/banner.html @@ -90,7 +90,7 @@ {% if FEATURES['USERS_PROFILE_BODYTEXT'] -%} - {% if u.bio_html and (not u.shadowbanned or (v and v.id == u.id)) %} + {% if u.bio_html and (not u.shadowbanned or (v and (v.id == u.id or v.can_see_shadowbanned))) %}
{{u.bio_html | safe}}
{% else %}

No bio...

@@ -351,7 +351,7 @@ {% if FEATURES['USERS_PROFILE_BODYTEXT'] -%} - {% if u.bio_html and (not u.shadowbanned or (v and v.id == u.id)) %} + {% if u.bio_html and (not u.shadowbanned or (v and (v.id == u.id or v.can_see_shadowbanned))) %}
{{u.bio_html | safe}}
{% endif %} diff --git a/files/templates/util/html_head.html b/files/templates/util/html_head.html index fa4df90ead..febfc7612e 100644 --- a/files/templates/util/html_head.html +++ b/files/templates/util/html_head.html @@ -50,7 +50,7 @@ {{0 if u.shadowbanned else u.comment_count}} Comments {%- endif -%} - {% if u.bio and (not u.shadowbanned or (v and v.id == u.id)) %} + {% if u.bio and (not u.shadowbanned or (v and (v.id == u.id or v.can_see_shadowbanned))) %} - {{u.bio}} {% endif %} {% endset %}