From f5b8147567421a69fd865d14daaf7dd06100d745 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 5 Sep 2023 21:28:59 +0300 Subject: [PATCH] fix sunshine annoyance --- files/routes/users.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index e103b88ab..9492aa92e 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -744,8 +744,12 @@ def messagereply(v): if top_comment.sentto == MODMAIL_ID: admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_MODMAIL'], User.id != v.id)] - if SITE == 'watchpeopledie.tv' and AEVANN_ID in admin_ids: - admin_ids.remove(AEVANN_ID) + + if SITE == 'watchpeopledie.tv': + if AEVANN_ID in admin_ids: + admin_ids.remove(AEVANN_ID) + if 'delete' in top_comment.body.lower() and 'account' in top_comment.body.lower(): + admin_ids.remove(15447) if parent.author.id not in admin_ids + [v.id]: admin_ids.append(parent.author.id)