summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-03 17:42:34 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-03 17:42:34 -0400
commita3fbff225927469e68efc7ab31977736f34c7480 (patch)
tree4f2694678c08c1b859b88b53a08827b49dca720d /post.php
parentf7d068536a874d25d6d645150e6ceb027c855e9b (diff)
Update $config['try_smarter']. Should be working now.
Diffstat (limited to 'post.php')
-rw-r--r--post.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/post.php b/post.php
index 103894db..65e85bcc 100644
--- a/post.php
+++ b/post.php
@@ -216,7 +216,7 @@ if (isset($_POST['delete'])) {
}
if (!$post['mod']) {
- $post['antispam_hash'] = checkSpam(array($board['uri'], isset($post['thread']) && !($config['quick_reply'] && isset($_POST['quick-reply'])) ? $post['thread'] : null));
+ $post['antispam_hash'] = checkSpam(array($board['uri'], isset($post['thread']) && !($config['quick_reply'] && isset($_POST['quick-reply'])) ? $post['thread'] : ($config['try_smarter'] && isset($_POST['page']) ? 0 - (int)$_POST['page'] : null)));
if ($post['antispam_hash'] === true)
error($config['error']['spam']);
}
@@ -594,12 +594,15 @@ if (isset($_POST['delete'])) {
}
}
- buildThread($post['op'] ? $id : $post['thread']);
-
if (!$post['op'] && strtolower($post['email']) != 'sage' && !$thread['sage'] && ($config['reply_limit'] == 0 || $numposts['replies']+1 < $config['reply_limit'])) {
bumpThread($post['thread']);
}
+ buildThread($post['op'] ? $id : $post['thread']);
+
+ if ($config['try_smarter'] && $post['op'])
+ $build_pages = range(1, $config['max_pages']);
+
if ($post['op'])
clean();