This commit is contained in:
Aevann1 2021-10-14 15:47:31 +02:00
parent 8670590fc1
commit c16bf4edc5

View file

@ -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