EditFederationModal: handle submission

This commit is contained in:
Alex Gleason
2021-07-27 14:40:41 -05:00
parent 9536fba7a9
commit 1fa3aa0008
3 changed files with 56 additions and 2 deletions

View File

@@ -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'])) {