From 6eee77cbc5394448966cc879823a347942e05522 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Sun, 12 Feb 2023 00:35:39 +0100 Subject: [PATCH] is this too spec? --- packages/backend/src/server/api/mastodon/endpoints/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/account.ts b/packages/backend/src/server/api/mastodon/endpoints/account.ts index ef9ac4f433..1127fa5fbd 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/account.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/account.ts @@ -70,7 +70,7 @@ export function apiAccountMastodon(router: Router): void { const accessTokens = ctx.headers.authorization; const client = getClient(BASE_URL, accessTokens); try { - const data = await client.getAccount((ctx.query.acct || '').toString()); + const data = await client.getAccount(`@${(ctx.query.acct || '').toString()}`); ctx.body = data.data; } catch (e: any) { console.error(e);