From a79ebac592f550e5df99a6ad39de27467708e4ed Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Thu, 22 Aug 2019 16:03:43 +0700 Subject: [PATCH] Improve AP routes rate limit --- lib/pleroma/web/ostatus/ostatus_controller.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/ostatus/ostatus_controller.ex b/lib/pleroma/web/ostatus/ostatus_controller.ex index 305901dfd..fdba0f77f 100644 --- a/lib/pleroma/web/ostatus/ostatus_controller.ex +++ b/lib/pleroma/web/ostatus/ostatus_controller.ex @@ -22,7 +22,10 @@ defmodule Pleroma.Web.OStatus.OStatusController do alias Pleroma.Web.Router 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]) -- 2.45.2