diff --git a/inc/8chan-mod-pages.php b/inc/8chan-mod-pages.php index 2360c8c2..19e5feef 100644 --- a/inc/8chan-mod-pages.php +++ b/inc/8chan-mod-pages.php @@ -635,8 +635,8 @@ FLAGS; } } - if (isset($_POST['hour_max_threads']) && in_array($_POST['hour_max_threads'], ['10', '25', '50', '100'])) { - $hour_max_threads = $_POST['hour_max_threads']; + if (isset($_POST['hour_max_threads']) && (int)$_POST['hour_max_threads'] > 0 && (int)$_POST['hour_max_threads'] < 101 ) { + $hour_max_threads = (int)$_POST['hour_max_threads']; } else { $hour_max_threads = 'false'; } diff --git a/templates/mod/settings.html b/templates/mod/settings.html index dea5fa01..d8a0d143 100644 --- a/templates/mod/settings.html +++ b/templates/mod/settings.html @@ -88,7 +88,7 @@ - +
{% trans %}Spam settings{% endtrans %}
{% trans %}Early 404{% endtrans %}
With this enabled, threads with less than 10 replies will 404 at page 5 instead of at page 15.
In effect, this makes it so that raiders have to put 10 replies in all their threads to slide an entire board.
{% trans %}Max threads per hour board-wide{% endtrans %}
Only allow X threads to be made per hour, regardless of poster
If a thread is deleted, it's not counted
{% trans %}Max threads per hour board-wide{% endtrans %}
Only allow X threads to be made per hour, regardless of poster
If a thread is deleted, it's not counted