forked from AkkomaGang/akkoma
MIX FORMAT
This commit is contained in:
parent
9bc0345e57
commit
98f0820ca4
1 changed files with 3 additions and 2 deletions
|
@ -115,7 +115,7 @@ defp allowed_instances do
|
||||||
def should_federate?(url) do
|
def should_federate?(url) do
|
||||||
%{host: host} = URI.parse(url)
|
%{host: host} = URI.parse(url)
|
||||||
|
|
||||||
with {:nil, false} <- {:nil, is_nil(host)},
|
with {nil, false} <- {nil, is_nil(host)},
|
||||||
allowed <- allowed_instances(),
|
allowed <- allowed_instances(),
|
||||||
false <- Enum.empty?(allowed) do
|
false <- Enum.empty?(allowed) do
|
||||||
allowed
|
allowed
|
||||||
|
@ -124,8 +124,9 @@ def should_federate?(url) do
|
||||||
|> Pleroma.Web.ActivityPub.MRF.subdomain_match?(host)
|
|> Pleroma.Web.ActivityPub.MRF.subdomain_match?(host)
|
||||||
else
|
else
|
||||||
# oi!
|
# oi!
|
||||||
{:nil, true} ->
|
{nil, true} ->
|
||||||
false
|
false
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
quarantined_instances =
|
quarantined_instances =
|
||||||
blocked_instances()
|
blocked_instances()
|
||||||
|
|
Loading…
Reference in a new issue