diff --git a/inc/8chan-mod-pages.php b/inc/8chan-mod-pages.php index be3b3fb7..2360c8c2 100644 --- a/inc/8chan-mod-pages.php +++ b/inc/8chan-mod-pages.php @@ -671,7 +671,18 @@ FLAGS; $max_newlines = $mn; } } else { - $max_newlines = $mn; + $max_newlines = 0; + } + + if (isset($_POST['min_body'])) { + $mb = (int)$_POST['min_body']; + if ($mb < 0 || $mb > 1024) { + $min_body = 0; + } else { + $min_body = $mb; + } + } else { + $min_body = 0; } if (!(strlen($title) < 40)) @@ -721,6 +732,7 @@ FLAGS; \$config['max_pages'] = $max_pages; \$config['max_newlines'] = $max_newlines; \$config['oekaki'] = $oekaki; +\$config['min_body'] = $min_body; \$config['mod']['view_bumplock'] = $view_bumplock; $code_tags $katex $replace $multiimage $allow_flash $allow_pdf $user_flags $assets diff --git a/templates/mod/settings.html b/templates/mod/settings.html index 3cb360c7..dea5fa01 100644 --- a/templates/mod/settings.html +++ b/templates/mod/settings.html @@ -63,6 +63,7 @@ {% trans %}Max number of newlines per post{% endtrans %} {% trans %}Page count{% endtrans %} {% trans %}Bump limit{% endtrans %} + {% trans %}Minimum OP text length{% endtrans %} (integer between 0 and 1024) {% trans %}Language{% endtrans %}
{% trans %}Read this page for more information about contributing translations:
Translation tutorial or use Transifex{% endtrans %}