[API] Resolve #3637

This commit is contained in:
syuilo 2018-12-17 01:43:34 +09:00
parent fee235c4e4
commit 1670737075
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -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),