From c9d223b346f96fd3a69effa45f7955354bb3cbc8 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Fri, 3 Nov 2023 17:25:36 +0700 Subject: [PATCH] Fixed incorrect displaying post actions buttons (#1021) --- search.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/search.php b/search.php index 2f6c6d7e0..6d1e0b73e 100644 --- a/search.php +++ b/search.php @@ -585,11 +585,16 @@ if ($post_mode) { 'TOPIC_ICON' => get_topic_icon($first_post, $is_unread_t), )); - $quote_btn = true; - $edit_btn = $delpost_btn = $ip_btn = (IS_AM); + $quote_btn = $edit_btn = $ip_btn = ''; + $delpost_btn = (IS_AM); // Topic posts block foreach ($topic_posts as $row_num => $post) { + if ($post['poster_id'] != BOT_UID) { + $quote_btn = true; + $edit_btn = $ip_btn = (IS_AM); + } + $message = get_parsed_post($post); if (count($orig_word)) {