1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-25 05:45:06 +01:00

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:
HJ 2019-12-08 13:00:21 +00:00
commit e60d9f2d5a

View File

@ -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
}