Remove whitespace hack on empty post content
It's no longer necessary since the backend handles posts with empty content fine and also fixes an odd whitespace when attachment links are disabled.
This commit is contained in:
parent
4e24ce2185
commit
3b11860d34
|
@ -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 New Issue