From 1e26fb3d79265161a8be8111d165f3483c2ed892 Mon Sep 17 00:00:00 2001 From: TLSM Date: Tue, 14 Jun 2022 18:04:22 -0400 Subject: [PATCH] Hide self-deleted posts from other users. --- files/templates/submission.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index 626f76acd..1d440b06a 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -11,6 +11,8 @@ {% set voted=-2 %} {% endif %} +{% set v_forbid_deleted = (p.deleted_utc != 0) and not (v and v.admin_level >= 2) and not (v and v.id == p.author_id) %} + {% block title %}