Export: fix Mastodon fqn

ci-review-rules
Alex Gleason 2022-05-24 14:14:22 -04:00
rodzic 86e673404e
commit 8c00f58162
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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));
};