mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 16:25:13 +00:00
tweak the rate limit for notes/create
while fixing #467 #468, we changed the rate limit from 300/hour to 5/minute some people felt it was too low: they often boost notes in quick succession so here's a different approach: back to 300/hour, but not more than 1/second; this is the same settings that `notes/delete` has, BTW
This commit is contained in:
parent
8f3549b494
commit
5c311e8a28
1 changed files with 3 additions and 2 deletions
|
@ -30,8 +30,9 @@ export const meta = {
|
|||
prohibitMoved: true,
|
||||
|
||||
limit: {
|
||||
duration: ms('1minute'),
|
||||
max: 5,
|
||||
duration: ms('1hour'),
|
||||
max: 300,
|
||||
minInterval: ms('1sec'),
|
||||
},
|
||||
|
||||
kind: 'write:notes',
|
||||
|
|
Loading…
Reference in a new issue