Skip to content

Commit

Permalink
修改某次版本更新后导致的实际字数上限bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jieqir committed May 7, 2021
1 parent a17290c commit 2882da1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ class ComposeForm extends ImmutablePureComponent {
const fulltext = this.getFulltextForCharacterCounting();
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0;

return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia));
return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 10009 || (isOnlyWhitespace && !anyMedia));
}
//看起来这里做了个fulltext的字数判断,试着修改了对应字数从500变为10009

handleSubmit = () => {
if (this.props.text !== this.autosuggestTextarea.textarea.value) {
Expand Down

0 comments on commit 2882da1

Please sign in to comment.