From 6169c02c896e104a6197214eb47518175598f66a Mon Sep 17 00:00:00 2001 From: TLSM Date: Sun, 13 Nov 2022 21:12:08 -0500 Subject: [PATCH] Fix f6dea300b for logged-out users. --- 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 4ea11d8d1..3c9607b02 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -362,7 +362,7 @@ class Comment(Base): if self.is_banned: return True - if self.author.shadowbanned and not v.shadowbanned: return True + if self.author.shadowbanned and not (v and v.shadowbanned): return True if (self.wordle_result) and (not self.body or len(self.body_html) <= 100) and 9 > self.level > 1: return True