about summary refs log tree commit diff
path: root/app/assets
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2016-10-31 01:27:19 +0100
committerGitHub <noreply@github.com>2016-10-31 01:27:19 +0100
commit50aaf4667f17a1e7cd5f834da184c62109314766 (patch)
tree7fcdc623f57b6703100fd7a6eb069544a4d128a7 /app/assets
parent7e356503984e724d713e07191886a7ddc212a63a (diff)
Fix accounts not being normalized from context statuses
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/components/reducers/accounts.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/accounts.jsx b/app/assets/javascripts/components/reducers/accounts.jsx
index 95f8059d1..10d637e57 100644
--- a/app/assets/javascripts/components/reducers/accounts.jsx
+++ b/app/assets/javascripts/components/reducers/accounts.jsx
@@ -19,7 +19,10 @@ import {
   TIMELINE_UPDATE,
   TIMELINE_EXPAND_SUCCESS
 } from '../actions/timelines';
-import { STATUS_FETCH_SUCCESS } from '../actions/statuses';
+import {
+  STATUS_FETCH_SUCCESS,
+  CONTEXT_FETCH_SUCCESS
+} from '../actions/statuses';
 import Immutable from 'immutable';
 
 const normalizeAccount = (state, account) => state.set(account.get('id'), account);
@@ -66,6 +69,7 @@ export default function accounts(state = initialState, action) {
     case TIMELINE_EXPAND_SUCCESS:
     case ACCOUNT_TIMELINE_FETCH_SUCCESS:
     case ACCOUNT_TIMELINE_EXPAND_SUCCESS:
+    case CONTEXT_FETCH_SUCCESS:
       return normalizeAccountsFromStatuses(state, Immutable.fromJS(action.statuses));
     case TIMELINE_UPDATE:
     case REBLOG_SUCCESS: