fixup: Remove countableText to count all text

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-12-21 15:21:46 +01:00
parent b103ce3159
commit 4186c5385c
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -160,13 +160,8 @@ class ComposeForm extends ImmutablePureComponent {
render () {
const { intl, onPaste, showSearch, anyMedia } = this.props;
const disabled = this.props.is_submitting;
<<<<<<< HEAD
const text = [this.props.spoiler_text, countableText(this.props.text)].join('');
const disabledButton = disabled || this.props.is_uploading || this.props.is_changing_upload || length(text) > maxChars || (text.length !== 0 && text.trim().length === 0 && !anyMedia);
=======
const text = [this.props.spoiler_text, this.props.text].join('');
const disabledButton = disabled || this.props.is_uploading || length(text) > maxChars || (text.length !== 0 && text.trim().length === 0 && !anyMedia);
>>>>>>> ed08e721e... Remove countableText to count all text
const disabledButton = disabled || this.props.is_uploading || this.props.is_changing_upload || length(text) > maxChars || (text.length !== 0 && text.trim().length === 0 && !anyMedia);
let publishText = '';
if (this.props.privacy === 'private' || this.props.privacy === 'direct') {