diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 650c6f151..159679936 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -359,6 +359,9 @@ def notifications(v:User): parent = x.parent_comment if parent.replies2 == None: 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() + total.extend(parent.replies2) + for y in parent.replies2: + y.replies2 = [] listing2.append(parent) else: listing2.append(x)