First, I also created a Flarum site. However, many users enter titles carelessly when posting, sometimes using only one or two characters, making the entire site look unattractive. Therefore, it is necessary to restrict post attributes. This article mainly explains how to restrict attributes related to discussion topics.
Discussion Title Length
Modify the following file:
vendor/flarum/core/src/Core/Validator/DiscussionValidator.php
Set min:3 and max:80 to a minimum of 3 characters and a maximum of 80 characters. Modify them according to your needs.
Post Content Length
Modify the following file:
vendor/flarum/core/src/Core/Validator/PostValidator.php
Change max:65535 to max:2147483647, so the post content limit changes from 21,845 Chinese characters to essentially unlimited.
Warning: Overly long posts may sometimes cause unnecessary errors.
Posting Interval
Modify the following file:
vendor/flarum/core/src/Core/Post/Floodgate.php
Change -10 seconds to the interval you need (the default is 10 seconds).