forked from MarseyWorld/MarseyWorld
fix notif getting deleted issue
parent
45af2ed6d1
commit
da1e87ebff
|
@ -409,7 +409,7 @@ def comment(v):
|
||||||
post_target.bump_utc = c.created_utc
|
post_target.bump_utc = c.created_utc
|
||||||
g.db.add(post_target)
|
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(
|
n = g.db.query(Notification).filter_by(
|
||||||
comment_id=c.parent_comment.parent_comment_id,
|
comment_id=c.parent_comment.parent_comment_id,
|
||||||
user_id=c.parent_comment.author_id,
|
user_id=c.parent_comment.author_id,
|
||||||
|
|
Loading…
Reference in New Issue