ITADN

Unexpected query parameter for /api/v1/accounts/relationships call

#1626Opensilverpill 创建于 2026-01-29
bug
S
silverpillcommented
### Describe the bug If I am reading the Mastodon documentation correctly, the `id` query parameter is supposed to be an array, not a single string: https://docs.joinmastodon.org/methods/accounts/#relationships Array parameters are marked with square brackets, here is an example from the doc: `Sample call with id[]=1&id[]=2`. Tuba doesn't add square brackets (at least in some cases). ### Steps To Reproduce 1. Go to any Profile page. 2. The server receives a request: `GET /api/v1/accounts/relationships?id=0194e23e-d2a6-8dc7-4122-afb2978eeb05` ### Logs and/or Screenshots ``` (tuba:20461): Tuba-CRITICAL **: 16:28:32.666: Network.vala:83: Request "https://***/api/v1/accounts/relationships?id=dd4ebc18-269d-4c7b-a310-03d29c6ab551" failed: 400 Bad Request ``` ### Instance Backend I'm not sure / Other ### Operating System Debian 13 ### Package OS repositories ### Troubleshooting information _No response_ ### Additional Context Tuba version: 0.9.2 Server software: Mitra
0 条评论