diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-03 20:16:14 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-03 20:16:14 +0100 |
commit | 6d26bfd14706872f6e4d1c3a3e45b00d81cf86cb (patch) | |
tree | 2277f67ffb45c76ea83f1b8416e726eb48f9c415 /app/assets/javascripts/components/reducers/user_lists.jsx | |
parent | 0405ef977a3ba37b3da472733e59be6db7bd7b99 (diff) |
Add list of who reblogged status
Diffstat (limited to 'app/assets/javascripts/components/reducers/user_lists.jsx')
-rw-r--r-- | app/assets/javascripts/components/reducers/user_lists.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/reducers/user_lists.jsx b/app/assets/javascripts/components/reducers/user_lists.jsx index d3b073e95..686179af2 100644 --- a/app/assets/javascripts/components/reducers/user_lists.jsx +++ b/app/assets/javascripts/components/reducers/user_lists.jsx @@ -3,6 +3,7 @@ import { FOLLOWING_FETCH_SUCCESS } from '../actions/accounts'; import { SUGGESTIONS_FETCH_SUCCESS } from '../actions/suggestions'; +import { REBLOGS_FETCH_SUCCESS } from '../actions/interactions'; import Immutable from 'immutable'; const initialState = Immutable.Map({ @@ -19,6 +20,8 @@ export default function userLists(state = initialState, action) { return state.setIn(['following', action.id], Immutable.List(action.accounts.map(item => item.id))); case SUGGESTIONS_FETCH_SUCCESS: return state.set('suggestions', Immutable.List(action.accounts.map(item => item.id))); + case REBLOGS_FETCH_SUCCESS: + return state.setIn(['reblogged_by', action.id], Immutable.List(action.accounts.map(item => item.id))); default: return state; } |