Skip to content

Commit

Permalink
Fixes 512 character limit frontend validation.
Browse files Browse the repository at this point in the history
It looks like this was changed here and got broken in a recent upgrade on
mastodon.technology:

6a895e1
  • Loading branch information
ashfurrow committed Jun 16, 2018
1 parent 4e3567a commit 007538b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -80,7 +80,7 @@ export default class ComposeForm extends ImmutablePureComponent {
const { is_submitting, is_uploading, anyMedia } = this.props;
const fulltext = [this.props.spoiler_text, countableText(this.props.text)].join('');

if (is_submitting || is_uploading || length(fulltext) > 500 || (fulltext.length !== 0 && fulltext.trim().length === 0 && !anyMedia)) {
if (is_submitting || is_uploading || length(fulltext) > 512 || (fulltext.length !== 0 && fulltext.trim().length === 0 && !anyMedia)) {
return;
}

Expand Down

0 comments on commit 007538b

Please sign in to comment.