~cytrogen/masto-fe

ref: f8dc013b0d81d5d463c086e291ce99ab1d796a9d masto-fe/app/javascript/mastodon/reducers/media_attachments.js -rw-r--r-- 383 bytes
f8dc013b — Cytrogen [feature] Add language selector to local settings 5 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
  }
}