From 29d324c42b6fb31e793324d7d86fe20561a4d64f Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 8 Mar 2024 06:31:35 +0200 Subject: [PATCH] fix bad logic --- files/routes/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 6cd1ed469..3730e97df 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -332,7 +332,7 @@ def notifications(v): comments = g.db.query(Comment, Notification).options(load_only(Comment.id)).join(Notification.comment).filter( Notification.user_id == v.id, - or_(Comment.sentto == None, Comment.sentto != v.id), + or_(Comment.sentto == None, Comment.sentto == MODMAIL_ID), ) if v.admin_level < PERMS['USER_SHADOWBAN']: