diff --git a/files/routes/posts.py b/files/routes/posts.py index 7dd46dfb52..aa6c571318 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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)