summaryrefslogtreecommitdiff
path: root/packages/backend
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2022-06-14 22:55:58 +0900
committerGitHub <noreply@github.com>2022-06-14 22:55:58 +0900
commitf1e6fa8ee27aff1feb12019f219720dbff4e2d5b (patch)
treed141081685f2535b6fcd616a64887536c0bd0a80 /packages/backend
parentfix(docs): use correct description property (diff)
downloadsharkey-f1e6fa8ee27aff1feb12019f219720dbff4e2d5b.tar.gz
sharkey-f1e6fa8ee27aff1feb12019f219720dbff4e2d5b.tar.bz2
sharkey-f1e6fa8ee27aff1feb12019f219720dbff4e2d5b.zip
fix: add limit to i/notifications (#8836)
* fix: add limit to i/notifications * ms * remove ms
Diffstat (limited to 'packages/backend')
-rw-r--r--packages/backend/src/server/api/endpoints/i/notifications.ts5
1 files changed, 5 insertions, 0 deletions
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: {