MIX FORMAT
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-arm64 Pipeline was successful
ci/woodpecker/push/build-amd64 Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful

This commit is contained in:
FloatingGhost 2023-08-15 23:26:22 +01:00
parent 9bc0345e57
commit 98f0820ca4

View file

@ -115,7 +115,7 @@ defp allowed_instances do
def should_federate?(url) do
%{host: host} = URI.parse(url)
with {:nil, false} <- {:nil, is_nil(host)},
with {nil, false} <- {nil, is_nil(host)},
allowed <- allowed_instances(),
false <- Enum.empty?(allowed) do
allowed
@ -124,8 +124,9 @@ def should_federate?(url) do
|> Pleroma.Web.ActivityPub.MRF.subdomain_match?(host)
else
# oi!
{:nil, true} ->
{nil, true} ->
false
_ ->
quarantined_instances =
blocked_instances()