diff --git a/files/routes/comments.py b/files/routes/comments.py index b37b8bd6d..3eafe42b6 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -638,6 +638,8 @@ def edit_comment(cid, v): if v.marseyawarded and marseyaward_body_regex.search(body_html): abort(403, "You can only type marseys!") + oldtext = c.body + c.body = body c.body_html = body_html @@ -654,7 +656,7 @@ def edit_comment(cid, v): g.db.add(c) - notify_users = NOTIFY_USERS(body, v, c.body, ghost=c.ghost, log_cost=c) + notify_users = NOTIFY_USERS(body, v, oldtext=oldtext, ghost=c.ghost, log_cost=c) if notify_users == 'everyone': alert_everyone(c.id) diff --git a/files/routes/posts.py b/files/routes/posts.py index 65bee6eab..15198f23c 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1029,7 +1029,7 @@ def edit_post(pid, v): if not p.private: - notify_users = NOTIFY_USERS(f'{title} {body}', v, f'{p.title} {p.body}', ghost=p.ghost, log_cost=p) + notify_users = NOTIFY_USERS(f'{title} {body}', v, oldtext=f'{p.title} {p.body}', ghost=p.ghost, log_cost=p) if notify_users: cid, text = notif_comment2(p) if notify_users == 'everyone': diff --git a/files/routes/settings.py b/files/routes/settings.py index 3ec9c3408..c4bf4a9f8 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -273,7 +273,7 @@ def settings_personal_post(v): friends = friends[:BIO_FRIENDS_ENEMIES_LENGTH_LIMIT] - notify_users = NOTIFY_USERS(friends, v, v.friends) + notify_users = NOTIFY_USERS(friends, v, oldtext=v.friends) if notify_users: text = f"@{v.username} has added you to their friends list!" @@ -304,7 +304,7 @@ def settings_personal_post(v): enemies = enemies[:BIO_FRIENDS_ENEMIES_LENGTH_LIMIT] - notify_users = NOTIFY_USERS(enemies, v, v.enemies) + notify_users = NOTIFY_USERS(enemies, v, oldtext=v.enemies) if notify_users: text = f"@{v.username} has added you to their enemies list!" cid = notif_comment(text)