This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-07-10 16:00:14 -07:00
|
|
|
import { Map as ImmutableMap } from 'immutable';
|
2017-05-08 07:49:53 -07:00
|
|
|
|
2023-05-28 07:38:10 -07:00
|
|
|
import { STORE_HYDRATE } from 'flavours/glitch/actions/store';
|
|
|
|
|
2017-07-10 16:00:14 -07:00
|
|
|
const initialState = ImmutableMap({
|
2017-05-08 07:49:53 -07:00
|
|
|
accept_content_types: [],
|
|
|
|
});
|
|
|
|
|
|
|
|
export default function meta(state = initialState, action) {
|
|
|
|
switch(action.type) {
|
2017-07-09 03:16:08 -07:00
|
|
|
case STORE_HYDRATE:
|
2017-05-08 07:49:53 -07:00
|
|
|
return state.merge(action.state.get('media_attachments'));
|
|
|
|
default:
|
|
|
|
return state;
|
|
|
|
}
|
2023-02-03 11:52:07 -08:00
|
|
|
}
|