forked from MarseyWorld/MarseyWorld
add missing pushnotif_url
parent
798993b6dd
commit
2f555e87dd
|
@ -193,7 +193,7 @@ def distribute(v, kind, option_id):
|
|||
for vote in votes:
|
||||
u = vote.user
|
||||
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:"
|
||||
cid = notif_comment(text)
|
||||
|
@ -202,7 +202,7 @@ def distribute(v, kind, option_id):
|
|||
if o.exclusive == 2:
|
||||
losing_voters.extend([x.user_id for x in o.votes])
|
||||
for uid in losing_voters:
|
||||
add_notif(cid, uid, text)
|
||||
add_notif(cid, uid, text, pushnotif_url=parent.permalink)
|
||||
|
||||
if isinstance(parent, Post):
|
||||
ma = ModAction(
|
||||
|
|
|
@ -251,7 +251,7 @@ def settings_personal_post(v):
|
|||
alert_everyone(cid)
|
||||
else:
|
||||
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_html=friends_html
|
||||
|
@ -277,7 +277,7 @@ def settings_personal_post(v):
|
|||
alert_everyone(cid)
|
||||
else:
|
||||
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_html=enemies_html
|
||||
|
|
Loading…
Reference in New Issue