Fix #147 - Unreblogging will leave original status in feeds

This commit is contained in:
Eugen Rochko 2017-01-07 15:44:22 +01:00
parent 7ddec6e7c3
commit 5c7add2176
3 changed files with 16 additions and 4 deletions

View file

@ -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
});
};
};