From 7cab24ad75b75cc4f8c94363f2dd3a5b382d80c0 Mon Sep 17 00:00:00 2001 From: fuzzykitten Date: Tue, 1 Apr 2025 15:32:55 -0400 Subject: [PATCH] added mark for edited posts --- opt/post_tools.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opt/post_tools.php b/opt/post_tools.php index 8460c95..47e3060 100644 --- a/opt/post_tools.php +++ b/opt/post_tools.php @@ -444,7 +444,9 @@ function make_edit($db, $sub, $post_id, $ip, $settings) $new_post_id = get_new_post_id($db, $sub); - $text = strip_tags($_POST['edit_text']); + $text = strip_tags($_POST['edit_text']) . '

' + . '[This post was edited by the user, click the' + . ' link "edit" to see the history]'; $text_id = hash('sha512', $text); $global_id = hash('sha512', $sub . $new_post_id . $org_id . $text);