Increase character limit to 1500
All checks were successful
Build Image for Deployment / build (push) Successful in 6m4s
All checks were successful
Build Image for Deployment / build (push) Successful in 6m4s
This commit is contained in:
parent
6b67455d7d
commit
705b6f560f
3 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ Die Instanz basiert auf Mastodon und ist vom offiziellen Quellcode-Repository ge
|
||||||
|
|
||||||
Gegenüber der Mastodon-Standardinstallation gibt es folgende Änderungen.
|
Gegenüber der Mastodon-Standardinstallation gibt es folgende Änderungen.
|
||||||
|
|
||||||
- Zeichenlimit von 500 auf 700 Zeichen erhöht
|
- Zeichenlimit von 500 auf 1500 Zeichen erhöht
|
||||||
|
|
||||||
|
|
||||||
[Vollständige Liste aller Änderungen](https://git.rabbithole.cyou/paravielfalt/mastodon/compare/stable-4.1...paravielfalt-4.1).
|
[Vollständige Liste aller Änderungen](https://git.rabbithole.cyou/paravielfalt/mastodon/compare/stable-4.1...paravielfalt-4.1).
|
||||||
|
|
|
@ -100,7 +100,7 @@ class ComposeForm extends ImmutablePureComponent {
|
||||||
const fulltext = this.getFulltextForCharacterCounting();
|
const fulltext = this.getFulltextForCharacterCounting();
|
||||||
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0;
|
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0;
|
||||||
|
|
||||||
return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 700 || (isOnlyWhitespace && !anyMedia));
|
return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 1500 || (isOnlyWhitespace && !anyMedia));
|
||||||
};
|
};
|
||||||
|
|
||||||
handleSubmit = (e) => {
|
handleSubmit = (e) => {
|
||||||
|
@ -297,7 +297,7 @@ class ComposeForm extends ImmutablePureComponent {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='character-counter__wrapper'>
|
<div className='character-counter__wrapper'>
|
||||||
<CharacterCounter max={700} text={this.getFulltextForCharacterCounting()} />
|
<CharacterCounter max={1500} text={this.getFulltextForCharacterCounting()} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class StatusLengthValidator < ActiveModel::Validator
|
class StatusLengthValidator < ActiveModel::Validator
|
||||||
MAX_CHARS = 700
|
MAX_CHARS = 1500
|
||||||
URL_PLACEHOLDER_CHARS = 23
|
URL_PLACEHOLDER_CHARS = 23
|
||||||
URL_PLACEHOLDER = 'x' * 23
|
URL_PLACEHOLDER = 'x' * 23
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue