diff --git a/files/classes/user.py b/files/classes/user.py index 00b20cf9e..71d4fc5fb 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -591,7 +591,7 @@ class User(Base): Notification.user_id == self.id, Comment.is_banned == False, Comment.deleted_utc == 0, - not_(and_(Comment.sentto == MODMAIL_ID, User.is_muted)), + not_(and_(Comment.sentto != None, Comment.sentto == MODMAIL_ID, User.is_muted)), )) if not self.can_see_shadowbanned: diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 696a72c34..0654abc7d 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -273,7 +273,7 @@ def notifications(v): Comment.deleted_utc == 0, Comment.body_html.notlike('%

New site mention%