From c01fba844c731b6aba07e084554c2dcbc60bb866 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 4 Feb 2022 07:15:20 +0200 Subject: [PATCH] sdf --- files/routes/front.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/files/routes/front.py b/files/routes/front.py index 8dbc06e76..8d3700503 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -95,7 +95,15 @@ 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: + + for x in c.replies: + if x.author_id == v.id: + x.voted = 1 + replies.append(x) + c.replies2 = replies + c.replies = [] + while c.parent_comment and c.parent_comment.author_id == v.id: parent = c.parent_comment if c not in parent.replies2: @@ -106,7 +114,14 @@ def notifications(v): listing.append(c) c.replies = c.replies2 elif c.parent_submission: + for x in c.replies: + if x.author_id == v.id: + x.voted = 1 + replies.append(x) + c.replies2 = replies + c.replies = [] + if c not in listing: listing.append(c) else: