Verified Commit 1a297466 authored by Haelwenn's avatar Haelwenn
Browse files

Getting-Started: Change endpoint to /api/pleroma/frontend_configurations and key to masto_fe

parent cdf95800
......@@ -11,7 +11,7 @@ export default function custom_panel(state = initialPanel, action) {
case PANEL_FETCH_SUCCESS:
return state.set('panel', action.panel); break;
case PLEROMA_CONFIG_FETCH_SUCCESS:
return state.set('enabled', (action.config || {}).site.pleromafe.showInstanceSpecificPanel || false);
return state.set('enabled', (action.config || {}).showInstanceSpecificPanel);
}
return state;
......
......@@ -57,8 +57,8 @@ export function fetchPleromaConfig() {
return (dispatch, getState) => {
dispatch(fetchPleromaConfigRequest());
api(getState).get('/api/statusnet/config.json').then(response => {
dispatch(fetchPleromaConfigSuccess(response.data));
api(getState).get('/api/pleroma/frontend_configurations').then(response => {
dispatch(fetchPleromaConfigSuccess(response.data.masto_fe));
}).catch(error => {
dispatch(fetchPleromaConfigFail(error));
});
......
......@@ -11,7 +11,7 @@ export function custom_panel(state = initialPanel, action) {
case PANEL_FETCH_SUCCESS:
return state.set('panel', action.panel); break;
case PLEROMA_CONFIG_FETCH_SUCCESS:
return state.set('enabled', (action.config || {}).site.pleromafe.showInstanceSpecificPanel || false);
return state.set('enabled', (action.config || {}).showInstanceSpecificPanel || false);
}
return state;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment