From ab36dfcdbb02dcf3fcc3cc26e21f076c3649c744 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Apr 2022 01:59:00 +0200 Subject: [PATCH] sfd --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 048bf72d28..4ae5ac8e3a 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -132,7 +132,7 @@ def notifications(v): for c in comments: if c.parent_submission: if not c.replies2: - c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id)).all() + c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all() cids = cids | set(x.id for x in c.replies2) while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments): c = c.parent_comment