From 3d08f9d4cb344a75ba110bef7cdb20df2a52bcd6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 31 Jan 2022 06:20:59 +0200 Subject: [PATCH] sfd --- files/classes/comment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/classes/comment.py b/files/classes/comment.py index de9b44362..1d25a8948 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -409,6 +409,8 @@ class Comment(Base): @lazy def collapse_for_user(self, v, path): + if self.author_id == v.id: return False + if path == '/admin/removed/comments': return False if self.over_18 and not (v and v.over_18) and not (self.post and self.post.over_18): return True