fd
This commit is contained in:
parent
d2567d22bb
commit
43bdb5e066
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue