add missing pushnotif_url

master
Aevann 2023-08-17 02:04:56 +03:00
parent 798993b6dd
commit 2f555e87dd
2 changed files with 4 additions and 4 deletions

View File

@ -193,7 +193,7 @@ def distribute(v, kind, option_id):
for vote in votes: for vote in votes:
u = vote.user u = vote.user
u.pay_account('coins', coinsperperson) u.pay_account('coins', coinsperperson)
add_notif(cid, u.id, text) add_notif(cid, u.id, text, pushnotif_url=parent.permalink)
text = f"You lost the {POLL_BET_COINS} coins you bet on {parent.permalink} :marseylaugh:" text = f"You lost the {POLL_BET_COINS} coins you bet on {parent.permalink} :marseylaugh:"
cid = notif_comment(text) cid = notif_comment(text)
@ -202,7 +202,7 @@ def distribute(v, kind, option_id):
if o.exclusive == 2: if o.exclusive == 2:
losing_voters.extend([x.user_id for x in o.votes]) losing_voters.extend([x.user_id for x in o.votes])
for uid in losing_voters: for uid in losing_voters:
add_notif(cid, uid, text) add_notif(cid, uid, text, pushnotif_url=parent.permalink)
if isinstance(parent, Post): if isinstance(parent, Post):
ma = ModAction( ma = ModAction(

View File

@ -251,7 +251,7 @@ def settings_personal_post(v):
alert_everyone(cid) alert_everyone(cid)
else: else:
for x in notify_users: for x in notify_users:
add_notif(cid, x, text) add_notif(cid, x, text, pushnotif_url=f'{SITE_FULL}{v.url}')
v.friends = friends v.friends = friends
v.friends_html=friends_html v.friends_html=friends_html
@ -277,7 +277,7 @@ def settings_personal_post(v):
alert_everyone(cid) alert_everyone(cid)
else: else:
for x in notify_users: for x in notify_users:
add_notif(cid, x, text) add_notif(cid, x, text, pushnotif_url=f'{SITE_FULL}{v.url}')
v.enemies = enemies v.enemies = enemies
v.enemies_html=enemies_html v.enemies_html=enemies_html