diff --git a/modcp.php b/modcp.php index dbe875618..d42be6cc5 100644 --- a/modcp.php +++ b/modcp.php @@ -524,6 +524,7 @@ switch ($mode) { WHERE p.topic_id = $topic_id AND p.poster_id = u.user_id AND p.post_id = pt.post_id + AND p.poster_id != " . BOT_UID . " ORDER BY p.post_time ASC"; if (!($result = DB()->sql_query($sql))) { bb_die('Could not get topic / post information'); diff --git a/src/Legacy/Post.php b/src/Legacy/Post.php index 1a12c7b46..9a9662d5c 100644 --- a/src/Legacy/Post.php +++ b/src/Legacy/Post.php @@ -496,6 +496,8 @@ class Post $post_text_values = "$post_id, '$post_text'"; DB()->query("INSERT INTO " . BB_POSTS_TEXT . " ($post_text_columns) VALUES ($post_text_values)"); + + DB()->query("UPDATE " . BB_USERS . " SET user_posts = user_posts + 1 WHERE user_id = $poster_id"); } /**