From 862f584df3626f41443eb8ffbd28f8c292ae33b4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 14 Oct 2021 15:47:31 +0200 Subject: [PATCH] dfsfsd --- 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 9fc283537..1c9bb94ca 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -357,7 +357,7 @@ class Comment(Base): if any([x in self.body for x in v.filter_words]): return True - if self.is_banned or self.author.shadowbanned: return True + if self.is_banned or (self.author and self.author.shadowbanned): return True return False