give me push notifs for DMs

pull/90/head
Aevann 2023-01-20 05:42:05 +02:00
parent 43aa2b5c0a
commit 1919fc822a
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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,