post.php: remove unused functions related to filter; add ip key to post

This commit is contained in:
fowr 2025-04-10 12:09:04 -03:00
parent 38095f0972
commit 4429e8e55a

View File

@ -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']);