diff options
author | Rachel H <rainyday@users.noreply.github.com> | 2017-04-21 11:06:25 -0700 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-21 20:06:25 +0200 |
commit | 5abd5437665a9453feaf16c45960483add802378 (patch) | |
tree | 21ee25ed98cca89e8ae67ec7ea88d6aad0747936 /app/assets/javascripts/components/reducers | |
parent | 1948f9e767c5c8f7cb52337ce777a61b5ad1a599 (diff) |
Put space before image (#1735)
Diffstat (limited to 'app/assets/javascripts/components/reducers')
-rw-r--r-- | app/assets/javascripts/components/reducers/compose.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/compose.jsx b/app/assets/javascripts/components/reducers/compose.jsx index 7349cc351..a411feedd 100644 --- a/app/assets/javascripts/components/reducers/compose.jsx +++ b/app/assets/javascripts/components/reducers/compose.jsx @@ -77,8 +77,8 @@ function appendMedia(state, media) { map.update('media_attachments', list => list.push(media)); map.set('is_uploading', false); map.set('resetFileKey', Math.floor((Math.random() * 0x10000))); + map.update('text', oldText => `${oldText.trim()} ${media.get('text_url')}`); map.set('focusDate', new Date()); - map.update('text', oldText => `${oldText.trim()} ${media.get('text_url')}`.trim() + ' '); }); }; |