mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-11 08:01:03 -07:00
uwu
This commit is contained in:
parent
d83e2f2c7a
commit
b209a9e533
1 changed files with 4 additions and 1 deletions
|
@ -308,7 +308,10 @@ export function apiAccountMastodon(router: Router): void {
|
||||||
const ids = typeof idsRaw === "string" ? [idsRaw] : idsRaw;
|
const ids = typeof idsRaw === "string" ? [idsRaw] : idsRaw;
|
||||||
users = ids;
|
users = ids;
|
||||||
relationshopModel.id = idsRaw?.toString() || "1";
|
relationshopModel.id = idsRaw?.toString() || "1";
|
||||||
if (!ids) return [relationshopModel];
|
if (!ids) {
|
||||||
|
ctx.body = [relationshopModel];
|
||||||
|
return;
|
||||||
|
}
|
||||||
const data = await client.getRelationships(ids);
|
const data = await client.getRelationships(ids);
|
||||||
ctx.body = data.data;
|
ctx.body = data.data;
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
|
|
Loading…
Reference in a new issue