about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-31 18:11:49 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-10-31 18:11:49 +0100
commitbab4904492dff61f20f44e6e0daf040173990214 (patch)
treee416e82316c9b9c1c428fda36e2adc3abc863881
parentd88d148d8925285cdb3783091db03cd48540f164 (diff)
Actually fix the reblogs/favs reducer issue
-rw-r--r--app/assets/javascripts/components/reducers/statuses.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/statuses.jsx b/app/assets/javascripts/components/reducers/statuses.jsx
index a4e91be2a..a1f1f07f1 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: