diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index d0584e0c26..c36db1001c 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -65,6 +65,8 @@ {% set voted=-2 %} {% endif %} +{% set v_forbid_deleted = (p.deleted_utc != 0 or p.is_banned) and not (v and v.admin_level >= 2) and not (v and v.id == p.author_id) %} + {% if p.active_flags(v) %}
Reported by: @@ -112,6 +114,7 @@
+ {% if not v_forbid_deleted %}
{% if p.club and not (v and (v.paid_dues or v.id == p.author_id)) %} post thumnail @@ -135,6 +138,7 @@ {% endif %}
+ {% endif %}
@@ -337,7 +341,7 @@
-{% if not p.club or v and (v.paid_dues or v.id == p.author_id) %} +{% if (not p.club or v and (v.paid_dues or v.id == p.author_id)) and not v_forbid_deleted %} {% if p.realbody(v) %}
{{p.realbody(v) | safe}}