diff --git a/src/server/api/endpoints/notes/delete.ts b/src/server/api/endpoints/notes/delete.ts index aa11f7bf19..1923aed9ba 100644 --- a/src/server/api/endpoints/notes/delete.ts +++ b/src/server/api/endpoints/notes/delete.ts @@ -3,6 +3,7 @@ import Note from '../../../../models/note'; import deleteNote from '../../../../services/note/delete'; import User from '../../../../models/user'; import define from '../../define'; +const ms = require('ms'); export const meta = { stability: 'stable', @@ -16,6 +17,12 @@ export const meta = { kind: 'note-write', + limit: { + duration: ms('1hour'), + max: 300, + minInterval: ms('1sec') + }, + params: { noteId: { validator: $.type(ID),