mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
is this too spec?
This commit is contained in:
parent
740e5e56ba
commit
8149145b75
@ -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((ctx.query.acct || '').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);
|
||||||
|
Loading…
Reference in New Issue
Block a user