~cytrogen/masto-fe

ref: 60792ec75346a80c5912ee3f918acc8d8a88deb2 masto-fe/app/javascript/mastodon/reducers/media_attachments.js -rw-r--r-- 375 bytes
60792ec7 — prplecake [feature] Add logout button to sidebar (#48) 10 months 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;
  }
}