From f03c4dc38ac90331ea21aa48bbc75e0c31a21762 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 31 Jan 2022 06:22:14 +0200 Subject: [PATCH] xcv --- files/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 1d25a8948..22a7fe82b 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -409,7 +409,7 @@ class Comment(Base): @lazy def collapse_for_user(self, v, path): - if self.author_id == v.id: return False + if v and self.author_id == v.id: return False if path == '/admin/removed/comments': return False