Only bump post edit date field when the text has been changed.

This commit is contained in:
flash 2018-12-30 20:53:51 +01:00
parent 8c7aad6d16
commit 0e0e431e26

View file

@ -187,7 +187,7 @@ if (!empty($_POST)) {
break;
case 'edit':
if (!forum_post_update($postId, ip_remote_address(), $postText, $postParser)) {
if (!forum_post_update($postId, ip_remote_address(), $postText, $postParser, $postText !== $post['post_text'])) {
$notices[] = 'Post edit failed.';
}