From f1e6fa8ee27aff1feb12019f219720dbff4e2d5b 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 4b57f49e3d..1c31ce7a68 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: {