[API] Resolve #3637
This commit is contained in:
parent
fee235c4e4
commit
1670737075
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,7 @@ import Note from '../../../../models/note';
|
||||||
import deleteNote from '../../../../services/note/delete';
|
import deleteNote from '../../../../services/note/delete';
|
||||||
import User from '../../../../models/user';
|
import User from '../../../../models/user';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
const ms = require('ms');
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
stability: 'stable',
|
stability: 'stable',
|
||||||
|
@ -16,6 +17,12 @@ export const meta = {
|
||||||
|
|
||||||
kind: 'note-write',
|
kind: 'note-write',
|
||||||
|
|
||||||
|
limit: {
|
||||||
|
duration: ms('1hour'),
|
||||||
|
max: 300,
|
||||||
|
minInterval: ms('1sec')
|
||||||
|
},
|
||||||
|
|
||||||
params: {
|
params: {
|
||||||
noteId: {
|
noteId: {
|
||||||
validator: $.type(ID),
|
validator: $.type(ID),
|
||||||
|
|
Loading…
Reference in a new issue