Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Haelwenn
glitchsoc-fe
Commits
ef2d50dd
Verified
Commit
ef2d50dd
authored
Apr 07, 2018
by
Morgan Bazalgette
Committed by
Haelwenn
Jun 04, 2018
Browse files
Remove > 500 check (make it check against charLimit)
parent
02b3cb20
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/javascript/mastodon/features/compose/components/compose_form.js
View file @
ef2d50dd
...
...
@@ -81,7 +81,7 @@ export default class ComposeForm extends ImmutablePureComponent {
const
{
is_submitting
,
is_uploading
,
anyMedia
}
=
this
.
props
;
const
fulltext
=
[
this
.
props
.
spoiler_text
,
countableText
(
this
.
props
.
text
)].
join
(
''
);
if
(
is_submitting
||
is_uploading
||
length
(
fulltext
)
>
500
||
(
fulltext
.
length
!==
0
&&
fulltext
.
trim
().
length
===
0
&&
!
anyMedia
))
{
if
(
is_submitting
||
is_uploading
||
length
(
fulltext
)
>
charLimit
||
(
fulltext
.
length
!==
0
&&
fulltext
.
trim
().
length
===
0
&&
!
anyMedia
))
{
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment