logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

media_attachments.js (375B)


  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. };