aboutsummaryrefslogtreecommitdiff
path: root/src/components/post_status_form
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-12-12 13:32:52 -0600
committerMark Felder <feld@FreeBSD.org>2019-12-12 13:32:52 -0600
commit821a2bcc68e1a6c5e0b9a8080b0b8a2be04d1dd2 (patch)
tree61b3d62bbd93d9be9c649fa7df8763cbd4bf9195 /src/components/post_status_form
parent43d4d17b41863dd5784f1d611857a9064759946b (diff)
parent051b9703dffa785eb3b0fde29d2ceab3fe1255ba (diff)
Merge branch 'develop' into feature/lockdown-timelines-private-mode
Diffstat (limited to 'src/components/post_status_form')
-rw-r--r--src/components/post_status_form/post_status_form.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index af6299e4..74067fef 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -169,9 +169,7 @@ const PostStatusForm = {
if (this.submitDisabled) { return }
if (this.newStatus.status === '') {
- if (this.newStatus.files.length > 0) {
- this.newStatus.status = '\u200b' // hack
- } else {
+ if (this.newStatus.files.length === 0) {
this.error = 'Cannot post an empty status with no files'
return
}