forked from AkkomaGang/akkoma-fe
Merge branch 'fix/remove-status-hack' into 'develop'
Remove whitespace hack on empty post content See merge request pleroma/pleroma-fe!1023
This commit is contained in:
commit
e60d9f2d5a
1 changed files with 1 additions and 3 deletions
|
@ -169,9 +169,7 @@ const PostStatusForm = {
|
||||||
if (this.submitDisabled) { return }
|
if (this.submitDisabled) { return }
|
||||||
|
|
||||||
if (this.newStatus.status === '') {
|
if (this.newStatus.status === '') {
|
||||||
if (this.newStatus.files.length > 0) {
|
if (this.newStatus.files.length === 0) {
|
||||||
this.newStatus.status = '\u200b' // hack
|
|
||||||
} else {
|
|
||||||
this.error = 'Cannot post an empty status with no files'
|
this.error = 'Cannot post an empty status with no files'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue