Skip to content
Snippets Groups Projects
Commit 59d47aa4 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Merge branch 'patch-1' into 'develop'

Only generate mentions string if there are mentions

See merge request pleroma/pleroma-fe!502
parents fbe7af3d 3c4cf5ed
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ const buildMentionsString = ({user, attentions}, currentUser) => {
return `@${attention.screen_name}`
})
return mentions.join(' ') + ' '
return mentions.length > 0 ? mentions.join(' ') + ' ' : ''
}
const PostStatusForm = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment