From 825cd1cab3052e53d6bed6131018804e2fcb2933 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 17 Dec 2021 20:39:13 +0200 Subject: [PATCH] fdsfds --- files/routes/posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 70ced6043..5e9a49afa 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1046,12 +1046,12 @@ def submit_post(v): user = g.db.query(User).filter_by(username=username).first() if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user.id) - for x in notify_users: send_notification(x, f"@{v.username} has mentioned you: https://{site}{new_post.permalink}") + for x in notify_users: send_notification(x, f"@{v.username} has mentioned you: [{title}]({new_post.permalink})") for follow in v.followers: user = get_account(follow.user_id) if new_post.club and not user.club_allowed: continue - send_notification(user.id, f"@{v.username} has made a new post: [{title}](https://{site}{new_post.permalink})", True) + send_notification(user.id, f"@{v.username} has made a new post: [{title}]({new_post.permalink})", True) g.db.add(new_post) g.db.flush()