From fc0f009435c20feaeff41947d27da3ab046af0a0 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 7 Aug 2021 17:33:36 +0200 Subject: [PATCH] fg --- files/routes/front.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index bf6f84423..50dcfa96d 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -41,6 +41,7 @@ def notifications(v): c._is_blocked = False c._is_blocking = False if c.parent_submission and c.parent_comment and c.parent_comment.author_id == v.id: + c.replies = [] while c.parent_comment: parent = c.parent_comment if c not in parent.replies2: @@ -50,8 +51,10 @@ def notifications(v): if c not in listing: listing.append(c) c.replies = c.replies2 - elif c.parent_submission and c not in listing: - listing.append(c) + elif c.parent_submission: + if c not in listing: + c.replies = [] + listing.append(c) else: if c.parent_comment: while c.level > 1: