diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-12-08 13:00:21 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-12-08 13:00:21 +0000 |
| commit | e60d9f2d5ae7de753cc9d3e74bd675ec79c9219e (patch) | |
| tree | 54935b4c871c13f335d7740a691c44d200406eb2 | |
| parent | 4e24ce2185aa4309ed9c3a239fa89d66989283d6 (diff) | |
| parent | 3b11860d3445271c9495b08f8c68330e48c5f33e (diff) | |
Merge branch 'fix/remove-status-hack' into 'develop'
Remove whitespace hack on empty post content
See merge request pleroma/pleroma-fe!1023
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 4 |
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 } |
