remotes/1693045480750635534/spooky-22
Aevann1 2022-02-17 08:32:04 +02:00
parent 21bd22d423
commit 0b9ced6e50
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

View File

@ -110,7 +110,7 @@ def notifications(v):
else:
while c.parent_comment:
c = c.parent_comment
c.replies = g.db.query(Comment).filter_by(parent_comment_id=c.id).order_by(Comment.id).all()
c.replies2 = g.db.query(Comment).filter_by(parent_comment_id=c.id).order_by(Comment.id).all()
if c not in listing: listing.append(c)