mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
[mastodon-client] Fix /v1/accounts/relationships for clients that don't use the id[] parameter
This commit is contained in:
parent
cb8b736592
commit
2e8598acb5
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ export function setupEndpointsAccount(router: Router): void {
|
|||
router.get("/v1/accounts/relationships",
|
||||
auth(true, ['read:follows']),
|
||||
async (ctx) => {
|
||||
const ids = (normalizeUrlQuery(ctx.query, ['id[]'])['id[]'] ?? []);
|
||||
const ids = normalizeUrlQuery(ctx.query, ['id[]'])['id[]']
|
||||
?? normalizeUrlQuery(ctx.query, ['id'])['id']
|
||||
?? [];
|
||||
ctx.body = await UserHelpers.getUserRelationhipToMany(ids, ctx.user.id);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue