The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

16 line
375 B

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