This commit is contained in:
cutestnekoaqua 2023-02-13 20:36:13 +01:00
parent 44990a1ddb
commit 45929f95f4
No known key found for this signature in database
GPG key ID: 6BF0964A5069C1E0

View file

@ -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) {