commit: 5abd5437665a9453feaf16c45960483add802378
parent: 1948f9e767c5c8f7cb52337ce777a61b5ad1a599
Author: Rachel H <rainyday@users.noreply.github.com>
Date: Fri, 21 Apr 2017 11:06:25 -0700
Put space before image (#1735)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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() + ' ');
});
};