Browse Source

Actually fix the reblogs/favs reducer issue

closed-social-v3
Eugen Rochko 8 years ago
parent
commit
bab4904492
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/assets/javascripts/components/reducers/statuses.jsx

+ 2
- 1
app/assets/javascripts/components/reducers/statuses.jsx View File

@ -53,11 +53,12 @@ export default function statuses(state = initialState, action) {
switch(action.type) { switch(action.type) {
case TIMELINE_UPDATE: case TIMELINE_UPDATE:
case STATUS_FETCH_SUCCESS: case STATUS_FETCH_SUCCESS:
return normalizeStatus(state, Immutable.fromJS(action.status));
case REBLOG_SUCCESS: case REBLOG_SUCCESS:
case UNREBLOG_SUCCESS: case UNREBLOG_SUCCESS:
case FAVOURITE_SUCCESS: case FAVOURITE_SUCCESS:
case UNFAVOURITE_SUCCESS: case UNFAVOURITE_SUCCESS:
return normalizeStatus(state, Immutable.fromJS(action.status));
return normalizeStatus(state, Immutable.fromJS(action.response));
case TIMELINE_REFRESH_SUCCESS: case TIMELINE_REFRESH_SUCCESS:
case TIMELINE_EXPAND_SUCCESS: case TIMELINE_EXPAND_SUCCESS:
case ACCOUNT_TIMELINE_FETCH_SUCCESS: case ACCOUNT_TIMELINE_FETCH_SUCCESS:

Loading…
Cancel
Save