From 1332d93a135661e8882d7b4e2c2966cc9e9f0e6a Mon Sep 17 00:00:00 2001 From: phpBB TR <166284197+phpbbtr@users.noreply.github.com> Date: Wed, 19 Jun 2024 02:38:51 +0300 Subject: [PATCH] [ticket/17345] Original time of last post when bump topic The original time of last post should not be updated when bump topic https://tracker.phpbb.com/browse/PHPBB-17345 --- phpBB/includes/functions_posting.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index f6428b974f..26c3206d70 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -2673,13 +2673,6 @@ function phpbb_bump_topic($forum_id, $topic_id, $post_data, $bump_time = false) // Begin bumping $db->sql_transaction('begin'); - // Update the topic's last post post_time - $sql = 'UPDATE ' . POSTS_TABLE . " - SET post_time = $bump_time - WHERE post_id = {$post_data['topic_last_post_id']} - AND topic_id = $topic_id"; - $db->sql_query($sql); - // Sync the topic's last post time, the rest of the topic's last post data isn't changed $sql = 'UPDATE ' . TOPICS_TABLE . " SET topic_last_post_time = $bump_time,