From 543e8d6a2025a1e7de9be86a9d508fd09fe33c43 Mon Sep 17 00:00:00 2001 From: Eugen Date: Mon, 31 Oct 2016 01:27:19 +0100 Subject: [PATCH] Fix accounts not being normalized from context statuses --- app/assets/javascripts/components/reducers/accounts.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/reducers/accounts.jsx b/app/assets/javascripts/components/reducers/accounts.jsx index 95f8059d12..10d637e57c 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: