exclude me from `daisy` and `kill myself` notifs

master
Aevann 2024-02-10 12:22:26 +02:00
parent 63ab6127e3
commit 7cf9430dbf
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, obj=None, followers_ping=Tr
notify_users.update(user_ids)
if SITE_NAME == "WPD" and ('daisy' in text or 'kill myself' in text):
admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_SPECIFIC_WPD_COMMENTS'])]
admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_SPECIFIC_WPD_COMMENTS'], User.id != AEVANN_ID)]
notify_users.update(admin_ids)
if FEATURES['PING_GROUPS']: