From de7a88e90f4c5427209c2aa7f9223fbdb4ac5fc9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 13 Feb 2024 12:55:21 +0200 Subject: [PATCH] remove notification deleting for disjoining notif chains --- files/routes/comments.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index fa93d0b7c..37747ea81 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -408,14 +408,6 @@ def comment(v): post_target.bump_utc = c.created_utc g.db.add(post_target) - 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, - read=True, - ).one_or_none() - if n: g.db.delete(n) - g.db.flush() if c.parent_post: