exempt me from modmail notifs

pull/222/head
Aevann 2024-02-04 01:02:44 +02:00
parent d7fa7982c7
commit 4363f5d3a4
1 changed files with 4 additions and 0 deletions

View File

@ -788,6 +788,10 @@ class User(Base):
def modmail_notifications_count(self):
if self.admin_level < PERMS['NOTIFICATIONS_MODMAIL']:
return 0
if self.id == AEVANN_ID and SITE == 'watchpeopledie.tv':
return 0
return g.db.query(Comment).distinct(Comment.top_comment_id).filter(
Comment.author_id != self.id,
Comment.sentto == MODMAIL_ID,