exclude me from modmail notifs in our sites

master
Aevann1 2022-08-13 01:06:19 +02:00
parent 539188ed85
commit 593b74c969
2 changed files with 3 additions and 3 deletions

View File

@ -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]}

View File

@ -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)