fix(api_spec): pass cast options on the first permissive cast
Without them replace_params: false was ignored when strict is off, so conn.params got atom keys and RateLimiter params: ["id"] buckets collapsed to one per user.
This commit is contained in:
parent
3e9dc477c9
commit
163c49c649
3 changed files with 6 additions and 3 deletions
1
changelog.d/cast-and-validate-cast-opts.fix
Normal file
1
changelog.d/cast-and-validate-cast-opts.fix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fix per-status and per-account rate limits when `Pleroma.Web.ApiSpec.CastAndValidate` `strict` is off (the production default)
|
||||
Loading…
Add table
Add a link
Reference in a new issue