Client language recognition
wget -qO "vendor/flarum/core/src/Locale/LocaleServiceProvider.php" \
"$GITHUB_ROOT/flarum/core/src/Locale/LocaleServiceProvider.php"
Allow registration of Chinese name
sed -i "s#a-z0-9-#-a-z0-9\\x7f-\\xff#" \
vendor/flarum/core/src/User/UserValidator.php
Support @ Chinese name
sed -i "s#a-z0-9-#-a-zA-Z0-9\\x7f-\\xff#" \
vendor/flarum/mentions/src/ConfigureMentions.php
Cancel the minimum length of username
sed -i's#min:3#min:1#' \
vendor/flarum/core/src/User/UserValidator.php \
Allow searching for IDs shorter than three characters
sed -i's#length>=3\&#length>=1\&#' \
vendor/flarum/core/js/dist/forum.js
Improve support for Chinese urls (fix some Chinese nickname user page analysis issues)
sed -i's#getIdForUsername($id)#getIdForUsername(urldecode($id))#' \
vendor/flarum/core/src/Api/Controller/ShowUserController.php
To
url only shows id
sed -i'/discussion->slug/d' \
vendor/flarum/core/src/Api/Serializer/BasicDiscussionSerializer.php
sed -i -r's#(discussion->id).$#\1#' \
vendor/flarum/core/views/frontend/content/index.blade.php
sed -i'/idWithSlug =/s/..$/;/' \
vendor/flarum/core/src/Forum/Content/Discussion.php
sed -i's#+(i.trim()?"-"+i:"")##' \
vendor/flarum/core/js/dist/forum.js