From 672e28b697938bb143833ea98d9f322d87b34c16 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 26 Feb 2023 00:21:59 +0200 Subject: [PATCH] try to fix repeated notifs --- files/routes/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 67f8de90b..7f632d534 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -322,7 +322,7 @@ def notifications(v:User): for x in c.replies2: if x.replies2 == None: x.replies2 = [] count = 0 - while count < 50 and c.parent_comment and (count == 0 or c.parent_comment.author_id == v.id or c.parent_comment.id in cids): + while count < 50 and c.parent_comment and ((count == 0 and c.parent_comment.id not in cids) or c.parent_comment.author_id == v.id or c.parent_comment.id in cids): count += 1 c = c.parent_comment if c.replies2 == None: