give me push notifs for DMs
parent
43aa2b5c0a
commit
1919fc822a
|
@ -107,8 +107,6 @@ def NOTIFY_USERS(text, v):
|
||||||
|
|
||||||
|
|
||||||
def push_notif(uids, title, body, url):
|
def push_notif(uids, title, body, url):
|
||||||
if uids == {AEVANN_ID}: return
|
|
||||||
|
|
||||||
if VAPID_PUBLIC_KEY == DEFAULT_CONFIG_VALUE:
|
if VAPID_PUBLIC_KEY == DEFAULT_CONFIG_VALUE:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -323,7 +323,8 @@ def comment(v:User):
|
||||||
else:
|
else:
|
||||||
url = f'{SITE_FULL}/@{c.wall_user.username}/wall/comment/{c.id}?read=true#context'
|
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,
|
vote = CommentVote(user_id=v.id,
|
||||||
comment_id=c.id,
|
comment_id=c.id,
|
||||||
|
|
Loading…
Reference in New Issue