bigbuffet-rw/app/soapbox/reducers/media_attachments.js

41 lines
681 B
JavaScript
Raw Normal View History

2020-04-17 16:25:36 -07:00
import {
Map as ImmutableMap,
List as ImmutableList,
} from 'immutable';
2020-03-27 13:59:38 -07:00
const initialState = ImmutableMap({
2020-04-17 16:25:36 -07:00
// FIXME: Leave this empty and pull from backend
accept_content_types: ImmutableList([
'.jpg',
'.jpeg',
'.png',
'.gif',
'.webp',
'.webm',
'.mp4',
'.m4v',
'.mov',
'.mp3',
'.ogg',
2020-08-27 19:31:07 -07:00
'.wav',
2020-04-17 16:25:36 -07:00
'image/jpeg',
'image/png',
'image/gif',
'image/webp',
'video/webm',
'video/mp4',
'video/quicktime',
'audio/mp3',
'audio/mpeg',
'audio/ogg',
2020-08-27 19:31:07 -07:00
'audio/wav',
2020-04-17 16:25:36 -07:00
]),
2020-03-27 13:59:38 -07:00
});
export default function meta(state = initialState, action) {
switch(action.type) {
default:
return state;
}
};