spare WPD jannies unnecessary notifs

master
Aevann 2024-04-10 05:09:19 +02:00
parent b222b4b9e5
commit 37d6926842
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, obj=None, followers_ping=Tr
user_ids = get_users(names, ids_only=True, graceful=True)
notify_users.update(user_ids)
if SITE_NAME == "WPD" and ('daisy' in text or ('kill myself' in text and obj and isinstance(obj, Post))):
if SITE_NAME == "WPD" and (('daisy' in text and 'destruction' in text) or ('kill myself' in text and obj and isinstance(obj, Post))):
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)