fix(blog): comment length limit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-28 20:00:52 +08:00
parent 8ccd1f642c
commit 2cf96c34ac
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -56,8 +56,8 @@ $comment_form->addTextArea('comment', [
if (!$comment) {
return '评论不能为空';
}
if (strlen($comment) > 1000) {
return '不能超过1000个字节';
if (strlen($comment) > 2000) {
return '不能超过 2000 个字节';
}
return '';
},
@ -131,8 +131,8 @@ $reply_form->addTextArea('reply_comment', [
if (!$comment) {
return '评论不能为空';
}
if (strlen($comment) > 140) {
return '不能超过140个字节';
if (strlen($comment) > 1000) {
return '不能超过 1000 个字节';
}
return '';
},