mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
mew
This commit is contained in:
parent
68c65044fd
commit
d83e2f2c7a
1 changed files with 2 additions and 3 deletions
|
@ -308,13 +308,12 @@ export function apiAccountMastodon(router: Router): void {
|
|||
const ids = typeof idsRaw === "string" ? [idsRaw] : idsRaw;
|
||||
users = ids;
|
||||
relationshopModel.id = idsRaw?.toString() || "1";
|
||||
if (!idsRaw) return [relationshopModel];
|
||||
const data = (await client.getRelationships(ids ? ids : [])) as any;
|
||||
if (!ids) return [relationshopModel];
|
||||
const data = await client.getRelationships(ids);
|
||||
ctx.body = data.data;
|
||||
} catch (e: any) {
|
||||
console.error(e);
|
||||
console.error(e.response.data);
|
||||
e.response.data.user = users ? users : "null";
|
||||
ctx.status = 401;
|
||||
ctx.body = e.response.data;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue