This commit is contained in:
cutestnekoaqua 2023-02-12 00:33:52 +01:00
parent b862402ce9
commit 69efbf8fda
No known key found for this signature in database
GPG key ID: 6BF0964A5069C1E0

View file

@ -70,7 +70,7 @@ export function apiAccountMastodon(router: Router): void {
const accessTokens = ctx.headers.authorization; const accessTokens = ctx.headers.authorization;
const client = getClient(BASE_URL, accessTokens); const client = getClient(BASE_URL, accessTokens);
try { try {
const data = await client.getAccount(( || '').toString()); const data = await client.getAccount((ctx.query.acct || '').toString());
ctx.body = data.data; ctx.body = data.data;
} catch (e: any) { } catch (e: any) {
console.error(e); console.error(e);