From ff981686813d33e779b2565ceebe4c0b757bd636 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Fri, 22 Nov 2024 00:43:54 +0700 Subject: [PATCH] Update posts.php --- library/ajax/posts.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/ajax/posts.php b/library/ajax/posts.php index b4427e960..54ba9da87 100644 --- a/library/ajax/posts.php +++ b/library/ajax/posts.php @@ -65,6 +65,14 @@ switch ($this->request['type']) { } break; + case 'pin': + if ($post['post_id'] != $post['topic_first_post_id'] && (($userdata['user_id'] == $post['poster_id']) || $is_auth['auth_mod'])) { + + } else { + // TODO + } + break; + case 'reply': if (bf($userdata['user_opt'], 'user_opt', 'dis_post')) { $this->ajax_die($lang['RULES_REPLY_CANNOT']);