From 8ee06f87ed5b31ad327b6e159789fa016a6c4a72 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 28 Oct 2023 15:29:55 +0700 Subject: [PATCH] Update functions_post.php --- library/includes/functions_post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/includes/functions_post.php b/library/includes/functions_post.php index 264f2fde..08c26b9f 100644 --- a/library/includes/functions_post.php +++ b/library/includes/functions_post.php @@ -504,6 +504,9 @@ function insert_post ($mode, $topic_id, $forum_id = '', $old_forum_id = '', $new $post_text_values = "$post_id, '$post_text'"; DB()->query("INSERT INTO ". BB_POSTS_TEXT ." ($post_text_columns) VALUES ($post_text_values)"); + + // Update user_posts counter for bot + DB()->query("UPDATE " . BB_USERS . " SET user_posts = user_posts + WHERE user_id = $poster_id"); } function topic_review ($topic_id)