Add option to limit the maximum thread depth of comments

This commit is contained in:
Kijin Sung 2024-10-09 16:45:36 +09:00
parent 81d9f46098
commit a4e9eb4a00
8 changed files with 60 additions and 0 deletions

View file

@ -119,6 +119,7 @@ class Features
{
$features->comment->cancel_report = ($module_info->cancel_vote ?? 'N') === 'Y';
}
$features->comment->max_thread_depth = $comment_config->max_thread_depth ?? 0;
$features->comment->default_page = $comment_config->default_page ?? 'last';
return $features;