diff options
| author | shadowfacts <me@shadowfacts.net> | 2019-01-31 00:50:19 +0000 |
|---|---|---|
| committer | shadowfacts <me@shadowfacts.net> | 2019-01-31 00:50:19 +0000 |
| commit | 3c4cf5ed1169bba6d5d2e4be5769c34d7c06da48 (patch) | |
| tree | df46ed0a2080651a350e9984ab0e57091032669d /src | |
| parent | fbe7af3d56e4e6e168208a511bd7cd4e4e4e7a40 (diff) | |
Only generate mentions string if there are mentions
Otherwise, a user replying to themselves without mentioning anyone else will insert a space at the beginning of the reply text area, hiding the placeholder.
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 8a4e2489..88bc736f 100644 --- 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 = { |
