1ff70886a1
Co-authored-by: tobi <tobi.smethurst@protonmail.com> Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88 Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org> Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
17 lines
383 B
JavaScript
17 lines
383 B
JavaScript
import { Map as ImmutableMap } from "immutable";
|
|
|
|
import { STORE_HYDRATE } from "../actions/store";
|
|
|
|
const initialState = ImmutableMap({
|
|
accept_content_types: [],
|
|
});
|
|
|
|
export default function meta(state = initialState, action) {
|
|
switch(action.type) {
|
|
case STORE_HYDRATE:
|
|
return state.merge(action.state.get("media_attachments"));
|
|
default:
|
|
return state;
|
|
}
|
|
}
|