logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: 59d47aa44a817d96bbfc6bd1a2027f490e569c7f
parent: fbe7af3d56e4e6e168208a511bd7cd4e4e4e7a40
Author: Shpuld Shpludson <shp@cock.li>
Date:   Thu, 31 Jan 2019 15:06:26 +0000

Merge branch 'patch-1' into 'develop'

Only generate mentions string if there are mentions

See merge request pleroma/pleroma-fe!502

Diffstat:

Msrc/components/post_status_form/post_status_form.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js @@ -16,7 +16,7 @@ const buildMentionsString = ({user, attentions}, currentUser) => { return `@${attention.screen_name}` }) - return mentions.join(' ') + ' ' + return mentions.length > 0 ? mentions.join(' ') + ' ' : '' } const PostStatusForm = {