about summary refs log tree commit diff
path: root/app/assets
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/components/actions/compose.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/actions/compose.jsx b/app/assets/javascripts/components/actions/compose.jsx
index 76402747d..a39ee7e19 100644
--- a/app/assets/javascripts/components/actions/compose.jsx
+++ b/app/assets/javascripts/components/actions/compose.jsx
@@ -69,9 +69,9 @@ export function submitCompose() {
       sensitive: getState().getIn(['compose', 'sensitive']),
       unlisted: getState().getIn(['compose', 'unlisted'])
     }).then(function (response) {
-      dispatch(submitComposeSuccess(response.data));
-      dispatch(updateTimeline('home', response.data));
-      dispatch(updateTimeline('public', response.data));
+      dispatch(submitComposeSuccess({ ...response.data }));
+      dispatch(updateTimeline('home', { ...response.data }));
+      dispatch(updateTimeline('public', { ...response.data }));
     }).catch(function (error) {
       dispatch(submitComposeFail(error));
     });