uwu
This commit is contained in:
parent
44990a1ddb
commit
45929f95f4
|
@ -308,7 +308,10 @@ export function apiAccountMastodon(router: Router): void {
|
|||
const ids = typeof idsRaw === "string" ? [idsRaw] : idsRaw;
|
||||
users = ids;
|
||||
relationshopModel.id = idsRaw?.toString() || "1";
|
||||
if (!ids) return [relationshopModel];
|
||||
if (!ids) {
|
||||
ctx.body = [relationshopModel];
|
||||
return;
|
||||
}
|
||||
const data = await client.getRelationships(ids);
|
||||
ctx.body = data.data;
|
||||
} catch (e: any) {
|
||||
|
|
Loading…
Reference in New Issue