Spinster migration hotfix: fix locale set to ""
This commit is contained in:
parent
e7bd011495
commit
101f519d4b
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@ export default function settings(state = initialState, action) {
|
||||||
case ME_FETCH_SUCCESS:
|
case ME_FETCH_SUCCESS:
|
||||||
case ME_PATCH_SUCCESS:
|
case ME_PATCH_SUCCESS:
|
||||||
const me = fromJS(action.me);
|
const me = fromJS(action.me);
|
||||||
const fePrefs = me.getIn(['pleroma', 'settings_store', FE_NAME]);
|
let fePrefs = me.getIn(['pleroma', 'settings_store', FE_NAME]);
|
||||||
|
// Spinster migration hotfix
|
||||||
|
if (fePrefs.get('locale') === '') {
|
||||||
|
fePrefs = fePrefs.delete('locale');
|
||||||
|
}
|
||||||
return state.merge(fePrefs);
|
return state.merge(fePrefs);
|
||||||
case NOTIFICATIONS_FILTER_SET:
|
case NOTIFICATIONS_FILTER_SET:
|
||||||
case SETTING_CHANGE:
|
case SETTING_CHANGE:
|
||||||
|
|
Loading…
Reference in a new issue