2017-07-11 08:00:14 +09:00
|
|
|
import { Map as ImmutableMap } from 'immutable';
|
2017-05-08 23:49:53 +09:00
|
|
|
|
2023-05-24 00:15:17 +09:00
|
|
|
import { STORE_HYDRATE } from '../actions/store';
|
|
|
|
|
2017-07-11 08:00:14 +09:00
|
|
|
const initialState = ImmutableMap({
|
2017-05-08 23:49:53 +09:00
|
|
|
accept_content_types: [],
|
|
|
|
});
|
|
|
|
|
|
|
|
export default function meta(state = initialState, action) {
|
|
|
|
switch(action.type) {
|
2017-07-09 19:16:08 +09:00
|
|
|
case STORE_HYDRATE:
|
2017-05-08 23:49:53 +09:00
|
|
|
return state.merge(action.state.get('media_attachments'));
|
|
|
|
default:
|
|
|
|
return state;
|
|
|
|
}
|
2022-12-19 00:51:37 +09:00
|
|
|
}
|