From 37d69268424e95320aa16530f99ab56072048cb7 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 10 Apr 2024 05:09:19 +0200 Subject: [PATCH] spare WPD jannies unnecessary notifs --- files/helpers/alerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 2fa2954da..91f56b4ab 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -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)