logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 5b1c13505f9750c819505028a21bd02d98e8e2f9
parent: c128d1a1feac4d3d312d252a1cfe1e016940c727
Author: Morgan Bazalgette <the@howl.moe>
Date:   Sat,  7 Apr 2018 17:49:12 +0200

Remove > 500 check (make it check against charLimit)

Diffstat:

Mapp/javascript/mastodon/features/compose/components/compose_form.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js @@ -79,7 +79,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) > charLimit || (fulltext.length !== 0 && fulltext.trim().length === 0 && !anyMedia)) { return; }