forked from MarseyWorld/MarseyWorld
exclude me from modmail notifs in our sites
parent
539188ed85
commit
593b74c969
|
@ -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]}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue