Update characters limit patch

This commit is contained in:
dump_stack() 2023-11-20 15:59:28 +00:00
parent 56317957d7
commit 23a8b61e15
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -1,8 +1,8 @@
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.jsx b/app/javascript/mastodon/features/compose/components/compose_form.jsx
index e641d59f4..0cc7719bb 100644
index 9222b2dc8..e2ce71b96 100644
--- a/app/javascript/mastodon/features/compose/components/compose_form.jsx
+++ b/app/javascript/mastodon/features/compose/components/compose_form.jsx
@@ -90,7 +90,7 @@ class ComposeForm extends ImmutablePureComponent {
@@ -100,7 +100,7 @@ class ComposeForm extends ImmutablePureComponent {
const fulltext = this.getFulltextForCharacterCounting();
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0;
@ -11,7 +11,7 @@ index e641d59f4..0cc7719bb 100644
};
handleSubmit = (e) => {
@@ -300,7 +300,7 @@ class ComposeForm extends ImmutablePureComponent {
@@ -297,7 +297,7 @@ class ComposeForm extends ImmutablePureComponent {
</div>
<div className='character-counter__wrapper'>
@ -19,9 +19,9 @@ index e641d59f4..0cc7719bb 100644
+ <CharacterCounter max={100500} text={this.getFulltextForCharacterCounting()} />
</div>
</div>
</div>
diff --git a/app/validators/status_length_validator.rb b/app/validators/status_length_validator.rb
index e107912b7..1e374a84d 100644
index dc841ded3..734ab143b 100644
--- a/app/validators/status_length_validator.rb
+++ b/app/validators/status_length_validator.rb
@@ -1,7 +1,7 @@