2017-07-11 02:00:14 +03:00
|
|
|
import { Map as ImmutableMap } from 'immutable';
|
2017-05-08 17:49:53 +03:00
|
|
|
|
2023-11-15 13:01:51 +02:00
|
|
|
import { STORE_HYDRATE } from '../actions/store';
|
2023-05-28 17:38:10 +03:00
|
|
|
|
2017-07-11 02:00:14 +03:00
|
|
|
const initialState = ImmutableMap({
|
2017-05-08 17:49:53 +03:00
|
|
|
accept_content_types: [],
|
|
|
|
});
|
|
|
|
|
|
|
|
export default function meta(state = initialState, action) {
|
|
|
|
switch(action.type) {
|
2017-07-09 13:16:08 +03:00
|
|
|
case STORE_HYDRATE:
|
2017-05-08 17:49:53 +03:00
|
|
|
return state.merge(action.state.get('media_attachments'));
|
|
|
|
default:
|
|
|
|
return state;
|
|
|
|
}
|
2023-02-03 21:52:07 +02:00
|
|
|
}
|