From ac6473ffb96319ed5ab664c1bcfa687cd5c04f87 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Apr 2022 02:21:59 +0200 Subject: [PATCH] fds --- files/routes/front.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/front.py b/files/routes/front.py index 6a76af4a0..23e921259 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -134,6 +134,8 @@ def notifications(v): if c.replies2 == None: c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all() cids.update(x.id for x in c.replies2) + for x in c.replies2: + x.replies2 = [] while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment.id in all): c = c.parent_comment if c.replies2 == None: