mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-21 16:33:48 +01: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
@ -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 New Issue
Block a user