From e40cdbcec6dcc8727934f442f340f4d3d8d5522d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 27 Sep 2021 23:55:36 +0200 Subject: [PATCH] sdf --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)