Export: fix Mastodon fqn

environments/review-gate-impor-msj350/deployments/59
Alex Gleason 2 years ago
parent 86e673404e
commit 8c00f58162
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -1,8 +1,8 @@
import { defineMessages } from 'react-intl';
import api, { getLinks } from '../api';
import snackbar from './snackbar';
import snackbar from 'soapbox/actions/snackbar';
import api, { getLinks } from 'soapbox/api';
import { normalizeAccount } from 'soapbox/normalizers';
import type { SnackbarAction } from './snackbar';
import type { AxiosResponse } from 'axios';
@ -60,7 +60,7 @@ const listAccounts = (getState: () => RootState) => async(apiResponse: AxiosResp
Array.prototype.push.apply(followings, apiResponse.data);
}
accounts = followings.map((account: { fqn: string }) => account.fqn);
accounts = followings.map((account: any) => normalizeAccount(account).fqn);
return Array.from(new Set(accounts));
};

Loading…
Cancel
Save