From: Egor Kislitsyn Date: Thu, 22 Aug 2019 09:03:43 +0000 (+0700) Subject: Improve AP routes rate limit X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a79ebac592f550e5df99a6ad39de27467708e4ed;p=akkoma Improve AP routes rate limit --- 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])