EditFederationModal: handle submission
This commit is contained in:
@@ -9,7 +9,7 @@ export const NODEINFO_FETCH_FAIL = 'NODEINFO_FETCH_FAIL';
|
||||
|
||||
export function fetchInstance() {
|
||||
return (dispatch, getState) => {
|
||||
api(getState).get('/api/v1/instance').then(response => {
|
||||
return api(getState).get('/api/v1/instance').then(response => {
|
||||
dispatch(importInstance(response.data));
|
||||
const v = parseVersion(get(response.data, 'version'));
|
||||
if (v.software === 'Pleroma' && !get(response.data, ['pleroma', 'metadata'])) {
|
||||
|
||||
Reference in New Issue
Block a user