diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2022-06-14 22:55:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-14 22:55:58 +0900 |
| commit | f1e6fa8ee27aff1feb12019f219720dbff4e2d5b (patch) | |
| tree | d141081685f2535b6fcd616a64887536c0bd0a80 /packages/backend/src/server/api/endpoints | |
| parent | fix(docs): use correct description property (diff) | |
| download | sharkey-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/src/server/api/endpoints')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/i/notifications.ts | 5 |
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: { |