Skip to content
Snippets Groups Projects
Commit e60d9f2d authored by HJ's avatar HJ :fire:
Browse files

Merge branch 'fix/remove-status-hack' into 'develop'

Remove whitespace hack on empty post content

See merge request !1023
parents 4e24ce21 3b11860d
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!1023Remove whitespace hack on empty post content
Pipeline #20820 passed
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment