Add rate limiting for search endpoints
This commit is contained in:
parent
2e5affce61
commit
bc8f059367
2 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|||
when action in [:account_register]
|
||||
)
|
||||
|
||||
plug(Pleroma.Plugs.RateLimiter, :search when action in [:search, :search2, :account_search])
|
||||
|
||||
@local_mastodon_name "Mastodon-Local"
|
||||
|
||||
action_fallback(:errors)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue