fix notif getting deleted issue

pull/216/head
Aevann 2023-10-28 18:07:07 +03:00
parent 45af2ed6d1
commit da1e87ebff
1 changed files with 1 additions and 1 deletions

View File

@ -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,