Skip to content
Snippets Groups Projects

Only generate mentions string if there are mentions

Merged shadowfacts requested to merge shadowfacts/pleroma-fe:patch-1 into develop
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -16,7 +16,7 @@ const buildMentionsString = ({user, attentions}, currentUser) => {
return `@${attention.screen_name}`
})
return mentions.join(' ') + ' '
return mentions.length > 0 ? mentions.join(' ') + ' ' : ''
}
const PostStatusForm = {
Loading