From 1919fc822afdb9262894cb0d70318cffb65de503 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 20 Jan 2023 05:42:05 +0200 Subject: [PATCH] give me push notifs for DMs --- files/helpers/alerts.py | 2 -- files/routes/comments.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 7feffbe68..228214064 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -107,8 +107,6 @@ def NOTIFY_USERS(text, v): def push_notif(uids, title, body, url): - if uids == {AEVANN_ID}: return - if VAPID_PUBLIC_KEY == DEFAULT_CONFIG_VALUE: return diff --git a/files/routes/comments.py b/files/routes/comments.py index 47f14d6dc..9973ea31f 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -323,7 +323,8 @@ def comment(v:User): else: url = f'{SITE_FULL}/@{c.wall_user.username}/wall/comment/{c.id}?read=true#context' - push_notif({parent_user.id}, title, notifbody, url) + if parent_user.id != AEVANN_ID: + push_notif({parent_user.id}, title, notifbody, url) vote = CommentVote(user_id=v.id, comment_id=c.id,