From f8b886e9f4a6f60e6971a45701c5c5aadc02d01d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 1 Mar 2022 02:23:39 +0200 Subject: [PATCH] perma --- files/routes/posts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 8ea14c872..813ff122f 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -98,7 +98,7 @@ def publish(pid, v): notify_users = NOTIFY_USERS(f'{post.title} {post.body}', v) if notify_users: - text = f"@{v.username} has mentioned you: [{post.title}]({post.shortlink})" + text = f"@{v.username} has mentioned you: [{post.permalink}]({post.shortlink})" if post.sub: text += f" in /s/{post.sub}" cid = notif_comment(text) @@ -577,7 +577,7 @@ def edit_post(pid, v): if not p.private and not p.ghost: notify_users = NOTIFY_USERS(f'{title} {body}', v) if notify_users: - cid = notif_comment(f"@{v.username} has mentioned you: [{p.title}]({p.shortlink})") + cid = notif_comment(f"@{v.username} has mentioned you: [{p.permalink}]({p.shortlink})") for x in notify_users: add_notif(cid, x) @@ -1171,7 +1171,7 @@ def submit_post(v, sub=None): notify_users = NOTIFY_USERS(f'{title} {body}', v) if notify_users: - text = f"@{v.username} has mentioned you: [{post.title}]({post.shortlink})" + text = f"@{v.username} has mentioned you: [{post.permalink}]({post.shortlink})" if post.sub: text += f" in /s/{post.sub}" cid = notif_comment(text)