forked from rDrama/rDrama
better replies
parent
6e3dd62a47
commit
e1c9f752c3
|
@ -361,7 +361,7 @@ def notifications(v:User):
|
||||||
if x.parent_comment_id:
|
if x.parent_comment_id:
|
||||||
parent = x.parent_comment
|
parent = x.parent_comment
|
||||||
if parent.replies2 == None:
|
if parent.replies2 == None:
|
||||||
parent.replies2 = [x]
|
parent.replies2 = g.db.query(Comment).filter_by(parent_comment_id=parent.id).filter(or_(Comment.author_id == v.id, Comment.id.in_(cids+[x.id]))).order_by(Comment.id.desc()).all()
|
||||||
listing2.append(parent)
|
listing2.append(parent)
|
||||||
else:
|
else:
|
||||||
listing2.append(x)
|
listing2.append(x)
|
||||||
|
|
Loading…
Reference in New Issue