forked from MarseyWorld/MarseyWorld
sneed
parent
037d41f5d5
commit
3356504b78
|
@ -212,7 +212,7 @@ class Comment(Base):
|
||||||
elif not self.parent_submission:
|
elif not self.parent_submission:
|
||||||
replies = g.db.query(Comment).filter_by(parent_comment_id=self.id).order_by(Comment.id).all()
|
replies = g.db.query(Comment).filter_by(parent_comment_id=self.id).order_by(Comment.id).all()
|
||||||
else:
|
else:
|
||||||
return self.child_comments
|
replies = self.child_comments
|
||||||
|
|
||||||
return [x for x in replies if not x.author.shadowbanned]
|
return [x for x in replies if not x.author.shadowbanned]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue