fix bad logic

pull/225/head
Aevann 2024-03-08 06:31:35 +02:00
parent bda8716980
commit 29d324c42b
1 changed files with 1 additions and 1 deletions

View File

@ -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']: