From 12881388d6f46a916c25fbb8d80fcbabb3b71c52 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 17 Nov 2022 16:35:08 -0600 Subject: [PATCH] notifications: ignore notifications --- files/classes/user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/classes/user.py b/files/classes/user.py index 860a1dfa3..903f256a4 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -979,6 +979,7 @@ class User(Base): else: if not other.parent_submission: if not user: return False + if not other.sentto: return True # handled by Notification if other.sentto == 2: return user.admin_level >= PERMS['VIEW_MODMAIL'] # type: ignore if other.sentto != user.id: return user.admin_level >= PERMS['POST_COMMENT_MODERATION'] # type: ignore if other.parent_submission and other.post.sub and not cls.can_see(user, other.post.subr): return False