From 7296a0d2cd0079a2ce4bd6d5860a11240e7b4ed8 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 16 Oct 2025 00:41:21 +0200 Subject: [PATCH] Remove rate limit for endpoints not prone to scraping --- common/src/api/schema.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/api/schema.ts b/common/src/api/schema.ts index fa3f2068..9a274186 100644 --- a/common/src/api/schema.ts +++ b/common/src/api/schema.ts @@ -123,7 +123,7 @@ export const API = (_apiTypeCheck = { me: { method: 'GET', authed: true, - rateLimited: true, + rateLimited: false, cache: DEFAULT_CACHE_STRATEGY, props: z.object({}), returns: {} as FullUser, @@ -184,7 +184,7 @@ export const API = (_apiTypeCheck = { 'me/private': { method: 'GET', authed: true, - rateLimited: true, + rateLimited: false, props: z.object({}), returns: {} as PrivateUser, }, @@ -261,7 +261,7 @@ export const API = (_apiTypeCheck = { 'get-compatibility-questions': { method: 'GET', authed: true, - rateLimited: true, + rateLimited: false, props: z.object({}), returns: {} as { status: 'success' @@ -400,7 +400,7 @@ export const API = (_apiTypeCheck = { 'get-channel-memberships': { method: 'GET', authed: true, - rateLimited: true, + rateLimited: false, props: z.object({ channelId: z.coerce.number().optional(), createdTime: z.string().optional(), @@ -415,7 +415,7 @@ export const API = (_apiTypeCheck = { 'get-channel-messages': { method: 'GET', authed: true, - rateLimited: true, + rateLimited: false, props: z.object({ channelId: z.coerce.number(), limit: z.coerce.number(),