[mastodon-client] Fix /v2/suggestions endpoint (undocumented API behavior strikes again)

This commit is contained in:
Laura Hausmann 2024-02-14 23:55:50 +01:00
parent e49d168ecd
commit 3399187302
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -70,7 +70,7 @@ export function setupEndpointsMisc(router: Router): void {
);
router.get("/v2/suggestions",
auth(true, ['read']),
auth(true, ['read:accounts']),
async (ctx) => {
const args = limitToInt(ctx.query);
ctx.body = await MiscHelpers.getFollowSuggestions(args.limit, ctx);