From 39bcc2a0c06c382385c92ba9f14f41374961b6e0 Mon Sep 17 00:00:00 2001 From: tykayn Date: Wed, 13 Jan 2021 14:28:16 +0100 Subject: [PATCH] :zap: merge master 3.0.3, feature counter Merge remote-tracking branch 'origin' Signed-off-by: Baptiste Lemoine # Conflicts: # .ruby-version # app/javascript/mastodon/components/status.js # app/javascript/mastodon/features/direct_timeline/components/conversation.js # app/javascript/mastodon/features/getting_started/components/announcements.js # app/javascript/mastodon/locales/fr.json # config/locales/kab.yml # config/locales/ta.yml # yarn.lock --- .../mastodon/features/compose/components/compose_form.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js index 36ed81fe2..2fcf982c2 100644 --- a/app/javascript/mastodon/features/compose/components/compose_form.js +++ b/app/javascript/mastodon/features/compose/components/compose_form.js @@ -92,7 +92,7 @@ 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) > this.props.maxTootCharsLimit || (isOnlyWhitespace && !anyMedia)); } handleSubmit = () => { @@ -258,8 +258,11 @@ class ComposeForm extends ImmutablePureComponent { - -
+ +