From 8c00f5816244c199f22fb4347e70652f6854fe43 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 24 May 2022 14:14:22 -0400 Subject: [PATCH] Export: fix Mastodon fqn --- app/soapbox/actions/export_data.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/actions/export_data.ts b/app/soapbox/actions/export_data.ts index de81215dd..b558c9e6e 100644 --- a/app/soapbox/actions/export_data.ts +++ b/app/soapbox/actions/export_data.ts @@ -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)); };