From 31cacef08bca98d975c02e16727985e55b63a252 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 31 Oct 2016 18:11:49 +0100 Subject: [PATCH] Actually fix the reblogs/favs reducer issue --- app/assets/javascripts/components/reducers/statuses.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/reducers/statuses.jsx b/app/assets/javascripts/components/reducers/statuses.jsx index a4e91be2a5..a1f1f07f18 100644 --- a/app/assets/javascripts/components/reducers/statuses.jsx +++ b/app/assets/javascripts/components/reducers/statuses.jsx @@ -53,11 +53,12 @@ export default function statuses(state = initialState, action) { switch(action.type) { case TIMELINE_UPDATE: case STATUS_FETCH_SUCCESS: + return normalizeStatus(state, Immutable.fromJS(action.status)); case REBLOG_SUCCESS: case UNREBLOG_SUCCESS: case FAVOURITE_SUCCESS: case UNFAVOURITE_SUCCESS: - return normalizeStatus(state, Immutable.fromJS(action.status)); + return normalizeStatus(state, Immutable.fromJS(action.response)); case TIMELINE_REFRESH_SUCCESS: case TIMELINE_EXPAND_SUCCESS: case ACCOUNT_TIMELINE_FETCH_SUCCESS: