From 4edb67667a22c423b98844f384c3e19f7ba11c75 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 14 Jun 2022 22:55:58 +0900 Subject: [PATCH] fix: add limit to i/notifications (#8836) * fix: add limit to i/notifications * ms * remove ms --- packages/backend/src/server/api/endpoints/i/notifications.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/backend/src/server/api/endpoints/i/notifications.ts b/packages/backend/src/server/api/endpoints/i/notifications.ts index 4b57f49e3..1c31ce7a6 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications.ts @@ -12,6 +12,11 @@ export const meta = { requireCredential: true, + limit: { + duration: 60000, + max: 10, + }, + kind: 'read:notifications', res: {