From 3399187302c3a00b5d79dc0d50ab8ed859c599af Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 14 Feb 2024 23:55:50 +0100 Subject: [PATCH] [mastodon-client] Fix /v2/suggestions endpoint (undocumented API behavior strikes again) --- packages/backend/src/server/api/mastodon/endpoints/misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/misc.ts b/packages/backend/src/server/api/mastodon/endpoints/misc.ts index 54e018e11..2abf45bf8 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/misc.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/misc.ts @@ -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);