From 079abfd7135e88562127b06135b0eb6aabee81b0 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 7 Jun 2024 15:10:16 +0100 Subject: [PATCH] rate limit note/reply/boost creation more tightly 5/minute is the same as 300/hour on average, and still high enough that it shouldn't be a problem for most people --- packages/backend/src/server/api/endpoints/notes/create.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index 95ebda2f21..cc44721133 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -30,8 +30,8 @@ export const meta = { prohibitMoved: true, limit: { - duration: ms('1hour'), - max: 300, + duration: ms('1minute'), + max: 5, }, kind: 'write:notes',