Fix Mastodon startup issues
This commit is contained in:
parent
d151ac9b35
commit
85a68e0715
3 changed files with 6 additions and 4 deletions
|
@ -64,7 +64,6 @@ export function fetchMeFail(error) {
|
|||
return {
|
||||
type: ME_FETCH_FAIL,
|
||||
error,
|
||||
skipAlert: true,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ const initialState = ImmutableMap({
|
|||
export default function instance(state = initialState, action) {
|
||||
switch(action.type) {
|
||||
case INSTANCE_IMPORT:
|
||||
return ImmutableMap(fromJS(action.instance));
|
||||
return initialState.merge(fromJS(action.instance));
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
|
|
@ -12,8 +12,11 @@ export default function meta(state = initialState, action) {
|
|||
return state.merge(action.state.get('meta'));
|
||||
case ME_FETCH_SUCCESS:
|
||||
const me = fromJS(action.me);
|
||||
const pleroPrefs = me.get('pleroma').delete('settings_store');
|
||||
return state.mergeIn(['pleroma'], pleroPrefs);
|
||||
if (me.has('pleroma')) {
|
||||
const pleroPrefs = me.get('pleroma').delete('settings_store');
|
||||
return state.mergeIn(['pleroma'], pleroPrefs);
|
||||
}
|
||||
return state;
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue