闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
400 B

  1. import { STORE_HYDRATE } from '../actions/store';
  2. import { Map as ImmutableMap } from 'immutable';
  3. const initialState = ImmutableMap({
  4. streaming_api_base_url: null,
  5. access_token: null,
  6. me: null,
  7. });
  8. export default function meta(state = initialState, action) {
  9. switch(action.type) {
  10. case STORE_HYDRATE:
  11. return state.merge(action.state.get('meta'));
  12. default:
  13. return state;
  14. }
  15. };