From 593b74c969d4bdc01d8877116d6811ba7692e308 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 13 Aug 2022 01:06:19 +0200 Subject: [PATCH] exclude me from modmail notifs in our sites --- files/routes/notifications.py | 3 --- files/routes/users.py | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 2dc330237..dbe5d83d8 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -256,9 +256,6 @@ def notifications(v): if c not in listing: listing.append(c) - if SITE == 'rdrama.net' and v.id == AEVANN_ID: - listing = [x for x in listing if x.sentto != 2] - g.db.commit() if request.headers.get("Authorization"): return {"data":[x.json for x in listing]} diff --git a/files/routes/users.py b/files/routes/users.py index f1c4a2f02..c8fdc48e8 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -793,6 +793,9 @@ def messagereply(v): if parent.author.id not in admins: admins.append(parent.author.id) + if CARP_ID and AEVANN_ID in admins: + admins.remove(AEVANN_ID) + for admin in admins: notif = Notification(comment_id=c.id, user_id=admin) g.db.add(notif)