is this too spec?

This commit is contained in:
cutestnekoaqua 2023-02-12 00:35:39 +01:00
parent 740e5e56ba
commit 8149145b75

View file

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