forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-27 23:55:36 +02:00
parent 97be0072c0
commit e40cdbcec6
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ def edit_post(pid, v):
message = f"@{v.username} has mentioned you: https://{site}{p.permalink}"
for x in notify_users:
existing = g.db.query(Comment).options(lazyload('*')).filter(Comment.author_id == NOTIFICATIONS_ACCOUNT, Comment.sentto == x.id, Comment.body == message, Comment.notifiedto == x.id).first()
existing = g.db.query(Comment).options(lazyload('*')).filter(Comment.author_id == NOTIFICATIONS_ACCOUNT, Comment.body == message, Comment.notifiedto == x.id).first()
if not existing: send_notification(NOTIFICATIONS_ACCOUNT, x, message)