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:
dakkar 2024-06-12 17:06:33 +01:00
parent 8f3549b494
commit 5c311e8a28

View File

@ -30,8 +30,9 @@ export const meta = {
prohibitMoved: true, prohibitMoved: true,
limit: { limit: {
duration: ms('1minute'), duration: ms('1hour'),
max: 5, max: 300,
minInterval: ms('1sec'),
}, },
kind: 'write:notes', kind: 'write:notes',