From: Ivan Tashkinov Date: Fri, 28 Feb 2020 13:33:42 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/plugs/rate_limiter/rate_limiter.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3759b146c4332f4026370fd1292085fbbb92d536;p=akkoma Apply suggestion to lib/pleroma/plugs/rate_limiter/rate_limiter.ex --- diff --git a/lib/pleroma/plugs/rate_limiter/rate_limiter.ex b/lib/pleroma/plugs/rate_limiter/rate_limiter.ex index d2067060d..3a27d6eb7 100644 --- a/lib/pleroma/plugs/rate_limiter/rate_limiter.ex +++ b/lib/pleroma/plugs/rate_limiter/rate_limiter.ex @@ -144,7 +144,7 @@ defmodule Pleroma.Plugs.RateLimiter do end def action_settings(plug_opts) do - with limiter_name when not is_nil(limiter_name) <- plug_opts[:name], + with limiter_name when is_atom(limiter_name) <- plug_opts[:name], limits when not is_nil(limits) <- Config.get([:rate_limit, limiter_name]) do bucket_name_root = Keyword.get(plug_opts, :bucket_name, limiter_name)