Merge branch 'improve-ap-routes-rate-limit' into 'develop'

Improve AP routes rate limit

See merge request pleroma/pleroma!1590
This commit is contained in:
lain 2019-08-22 10:20:50 +00:00
commit 01653f618d
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,10 @@ defmodule Pleroma.Web.OStatus.OStatusController do
alias Pleroma.Web.Router alias Pleroma.Web.Router
alias Pleroma.Web.XML alias Pleroma.Web.XML
plug(Pleroma.Plugs.RateLimiter, :ap_routes when action in [:object, :activity]) plug(
Pleroma.Plugs.RateLimiter,
{:ap_routes, params: ["uuid"]} when action in [:object, :activity]
)
plug(Pleroma.Web.FederatingPlug when action in [:salmon_incoming]) plug(Pleroma.Web.FederatingPlug when action in [:salmon_incoming])