2020-03-27 13:59:38 -07:00
|
|
|
'use strict';
|
|
|
|
|
2021-08-23 15:51:32 -07:00
|
|
|
import { Map as ImmutableMap } from 'immutable';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-01-10 14:01:24 -08:00
|
|
|
import { INSTANCE_FETCH_FAIL } from 'soapbox/actions/instance';
|
2020-03-27 13:59:38 -07:00
|
|
|
|
2020-04-17 16:29:45 -07:00
|
|
|
const initialState = ImmutableMap();
|
2020-03-27 13:59:38 -07:00
|
|
|
|
|
|
|
export default function meta(state = initialState, action) {
|
|
|
|
switch(action.type) {
|
2021-08-22 12:34:58 -07:00
|
|
|
case INSTANCE_FETCH_FAIL:
|
|
|
|
return state.set('instance_fetch_failed', true);
|
2020-03-27 13:59:38 -07:00
|
|
|
default:
|
|
|
|
return state;
|
|
|
|
}
|
2021-08-03 12:22:51 -07:00
|
|
|
}
|