about summary refs log tree commit diff
path: root/app/assets/javascripts/components/actions
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-07 15:44:22 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-07 15:44:22 +0100
commit5c7add21761fc6b7d3c0af0819865242ce381960 (patch)
treec6928e1b99ec8218f40d0fac12214b1ec0dd21aa /app/assets/javascripts/components/actions
parent7ddec6e7c3a8bdfcc69d28a723caca61cdb2a17c (diff)
Fix #147 - Unreblogging will leave original status in feeds
Diffstat (limited to 'app/assets/javascripts/components/actions')
-rw-r--r--app/assets/javascripts/components/actions/timelines.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/actions/timelines.jsx b/app/assets/javascripts/components/actions/timelines.jsx
index 0e6f09190..8bb939d31 100644
--- a/app/assets/javascripts/components/actions/timelines.jsx
+++ b/app/assets/javascripts/components/actions/timelines.jsx
@@ -39,12 +39,14 @@ export function deleteFromTimelines(id) {
   return (dispatch, getState) => {
     const accountId  = getState().getIn(['statuses', id, 'account']);
     const references = getState().get('statuses').filter(status => status.get('reblog') === id).map(status => [status.get('id'), status.get('account')]);
+    const reblogOf   = getState().getIn(['statuses', id, 'reblog'], null);
 
     dispatch({
       type: TIMELINE_DELETE,
       id,
       accountId,
-      references
+      references,
+      reblogOf
     });
   };
 };