This commit is contained in:
Aevann1 2022-02-17 08:32:04 +02:00
parent d2567d22bb
commit 43bdb5e066
2 changed files with 2 additions and 2 deletions

View file

@ -205,7 +205,7 @@ class Comment(Base):
@property
def replies(self):
if self.replies2 != None: return [x for x in self.replies2 if not x.author.shadowbanned]
if self.replies2 != None: return [x for x in self.replies2 if not x.author.shadowbanned]
return sorted((x for x in self.child_comments if x.author and not x.author.shadowbanned and x.author_id not in (AUTOPOLLER_ID, AUTOBETTER_ID, AUTOCHOICE_ID)), key=lambda x: x.realupvotes, reverse=True)
@property