From b6e7151cceb18c01b22172ec0652455800e8d52b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 11 Aug 2022 13:27:52 +0200 Subject: [PATCH] censor notifs --- files/helpers/alerts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 38871262f..1e12b8b84 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -113,6 +113,9 @@ if PUSHER_ID != 'blahblahblah': beams_client = PushNotifications(instance_id=PUSHER_ID, secret_key=PUSHER_KEY) def pusher_thread(interests, title, notifbody, url): + title = censor_slurs(title) + notifbody = censor_slurs(body) + beams_client.publish_to_interests( interests=[interests], publish_body={