nicolium: fix

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-14 22:13:42 +01:00
parent af94c276bb
commit 11aaec1856
2 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,7 @@ const listAccounts = async (response: PaginatedResponse<Account>) => {
return Array.from(new Set(accounts));
};
const exportFollows = async (client: PlApiClient) => {
const exportFollows = async (client: PlApiClient, me: string) => {
const response = await client.accounts.getAccountFollowing(me, { limit: 40 });
const followings = await listAccounts(response);
const followingsCsv = followings.map((fqn) => fqn + ',true');

View File

@ -7,6 +7,7 @@ import Column from '@/components/ui/column';
import Form from '@/components/ui/form';
import FormActions from '@/components/ui/form-actions';
import Text from '@/components/ui/text';
import { useCurrentAccount } from '@/contexts/current-account-context';
import { useClient } from '@/hooks/use-client';
interface ICSVExporter {
@ -53,12 +54,13 @@ const messages = defineMessages({
const ExportDataPage = () => {
const client = useClient();
const accountId = useCurrentAccount();
const intl = useIntl();
return (
<Column label={intl.formatMessage(messages.heading)}>
<CSVExporter
action={() => exportFollows(client)}
action={() => exportFollows(client, accountId as string)}
inputLabel={<FormattedMessage id='export_data.follows_label' defaultMessage='Follows' />}
inputHint={
<FormattedMessage