From 4429e8e55a7b9b1358da653c8d35355ddda93b3f Mon Sep 17 00:00:00 2001 From: fowr <89118232+perdedora@users.noreply.github.com> Date: Thu, 10 Apr 2025 12:09:04 -0300 Subject: [PATCH] post.php: remove unused functions related to filter; add ip key to post --- post.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/post.php b/post.php index beea3cc2..fb927987 100644 --- a/post.php +++ b/post.php @@ -597,6 +597,7 @@ if (isset($_POST['delete'])) { // Check if banned checkBan($board['uri']); + $post['ip'] = $_SERVER['REMOTE_ADDR']; // Check for CAPTCHA right after opening the board so the "return" link is in there. try { $provider = $config['captcha']['provider']; @@ -1272,8 +1273,6 @@ if (isset($_POST['delete'])) { nntp_publish($message, $msgid); } - insertFloodPost($post); - // Handle cyclical threads if (!$post['op'] && isset($thread['cycle']) && $thread['cycle']) { delete_cyclical_posts($board['uri'], $post['thread'], $config['cycle_limit']);