diff --git a/files/routes/admin.py b/files/routes/admin.py index 066a7d5f5..ab065592b 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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( diff --git a/files/routes/settings.py b/files/routes/settings.py index acfdadad4..1500c2d89 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -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