Merge branch 'develop' into fix/csp-mediaproxy-base-url
[akkoma] / lib / pleroma / web / activity_pub / mrf.ex
index f5464794541330ad3996f71094f4cbdd5e82c400..a0b3af432b18ecc5cde7a84765a3f07924d7ad1a 100644 (file)
@@ -33,7 +33,7 @@ defmodule Pleroma.Web.ActivityPub.MRF do
 
   @spec subdomain_match?([Regex.t()], String.t()) :: boolean()
   def subdomain_match?(domains, host) do
-    !!Enum.find(domains, fn domain -> Regex.match?(domain, host) end)
+    Enum.any?(domains, fn domain -> Regex.match?(domain, host) end)
   end
 
   @callback describe() :: {:ok | :error, Map.t()}