Merge branch 'snow' of https://github.com/Aevann1/Drama into snow

remotes/1693045480750635534/spooky-22
kek7198 2021-12-13 20:36:48 -06:00
commit 109b5c2796
1 changed files with 2 additions and 2 deletions

View File

@ -1045,12 +1045,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()