|
|
|
@ -88,7 +88,7 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
|
const { isSubmitting, isChangingUpload, isUploading, anyMedia } = this.props;
|
|
|
|
|
const fulltext = [this.props.spoilerText, countableText(this.props.text)].join('');
|
|
|
|
|
|
|
|
|
|
if (isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (fulltext.length !== 0 && fulltext.trim().length === 0 && !anyMedia)) {
|
|
|
|
|
if (isSubmitting || isUploading || isChangingUpload || length(fulltext) > 512 || (fulltext.length !== 0 && fulltext.trim().length === 0 && !anyMedia)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -181,7 +181,7 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
|
const { intl, onPaste, showSearch, anyMedia } = this.props;
|
|
|
|
|
const disabled = this.props.isSubmitting;
|
|
|
|
|
const text = [this.props.spoilerText, countableText(this.props.text)].join('');
|
|
|
|
|
const disabledButton = disabled || this.props.isUploading || this.props.isChangingUpload || length(text) > 500 || (text.length !== 0 && text.trim().length === 0 && !anyMedia);
|
|
|
|
|
const disabledButton = disabled || this.props.isUploading || this.props.isChangingUpload || length(text) > 512 || (text.length !== 0 && text.trim().length === 0 && !anyMedia);
|
|
|
|
|
let publishText = '';
|
|
|
|
|
|
|
|
|
|
if (this.props.privacy === 'private' || this.props.privacy === 'direct') {
|
|
|
|
@ -243,7 +243,7 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
|
<PrivacyDropdownContainer />
|
|
|
|
|
<SpoilerButtonContainer />
|
|
|
|
|
</div>
|
|
|
|
|
<div className='character-counter__wrapper'><CharacterCounter max={500} text={text} /></div>
|
|
|
|
|
<div className='character-counter__wrapper'><CharacterCounter max={512} text={text} /></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className='compose-form__publish'>
|
|
|
|
|