From b545d93d36324827f9bc443779d876ec46d2ca4f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 31 Jan 2022 01:11:07 +0200 Subject: [PATCH] nnnnnnnnnnnn --- files/routes/front.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index f9128a50e2..8ee2e91caf 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -94,7 +94,12 @@ 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 = [] + replies = [] + for x in c.replies: + if x.author_id == v.id: + x.voted = 1 + replies.append(x) + c.replies = replies while c.parent_comment and c.parent_comment.author_id == v.id: parent = c.parent_comment if c not in parent.replies2: @@ -105,7 +110,12 @@ def notifications(v): listing.append(c) c.replies = c.replies2 elif c.parent_submission: - c.replies = [] + replies = [] + for x in c.replies: + if x.author_id == v.id: + x.voted = 1 + replies.append(x) + c.replies = replies if c not in listing: listing.append(c) else: