Fix character limit patch

This commit is contained in:
dump_stack() 2023-02-10 22:20:31 +00:00
parent 6d7992b86b
commit f4db239964
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -1,5 +1,5 @@
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js
index 6a65f44da..d67e29db3 100644 index e641d59f4..0cc7719bb 100644
--- a/app/javascript/mastodon/features/compose/components/compose_form.js --- a/app/javascript/mastodon/features/compose/components/compose_form.js
+++ b/app/javascript/mastodon/features/compose/components/compose_form.js +++ b/app/javascript/mastodon/features/compose/components/compose_form.js
@@ -90,7 +90,7 @@ class ComposeForm extends ImmutablePureComponent { @@ -90,7 +90,7 @@ class ComposeForm extends ImmutablePureComponent {
@ -8,10 +8,10 @@ index 6a65f44da..d67e29db3 100644
- return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia)); - return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia));
+ return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 100500 || (isOnlyWhitespace && !anyMedia)); + return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 100500 || (isOnlyWhitespace && !anyMedia));
} };
handleSubmit = (e) => { handleSubmit = (e) => {
@@ -277,7 +277,7 @@ class ComposeForm extends ImmutablePureComponent { @@ -280,7 +280,7 @@ class ComposeForm extends ImmutablePureComponent {
</div> </div>
<div className='character-counter__wrapper'> <div className='character-counter__wrapper'>