From da1e87ebff23b516ca15e7d4f264cf0d52d219b2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 28 Oct 2023 18:07:07 +0300 Subject: [PATCH] fix notif getting deleted issue --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index d1a755466..4dc01b224 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -409,7 +409,7 @@ def comment(v): post_target.bump_utc = c.created_utc g.db.add(post_target) - if c.level >= 3: + if c.level >= 3 and c.parent_comment.author_id in notify_users: n = g.db.query(Notification).filter_by( comment_id=c.parent_comment.parent_comment_id, user_id=c.parent_comment.author_id,