Merge branch 'patch-1' into 'develop'
Only generate mentions string if there are mentions See merge request pleroma/pleroma-fe!502
This commit is contained in:
commit
59d47aa44a
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ const buildMentionsString = ({user, attentions}, currentUser) => {
|
||||||
return `@${attention.screen_name}`
|
return `@${attention.screen_name}`
|
||||||
})
|
})
|
||||||
|
|
||||||
return mentions.join(' ') + ' '
|
return mentions.length > 0 ? mentions.join(' ') + ' ' : ''
|
||||||
}
|
}
|
||||||
|
|
||||||
const PostStatusForm = {
|
const PostStatusForm = {
|
||||||
|
|
Loading…
Reference in a new issue