Commit b72d32f5 authored by hakabahitoyo's avatar hakabahitoyo
Browse files

[3.distsn.org specific] Skip ActivityPub destination validation. See also #473, #461

parent 03a71eba
Pipeline #5707 failed with stages
in 8 minutes and 29 seconds
......@@ -50,18 +50,7 @@ def contain_origin(id, %{"actor" => _actor} = params) do
end
end
def contain_origin_from_id(_id, %{"id" => nil}), do: :error
def contain_origin_from_id(id, %{"id" => other_id} = _params) do
id_uri = URI.parse(id)
other_uri = URI.parse(other_id)
if id_uri.host == other_uri.host do
:ok
else
:error
end
end
def contain_origin_from_id(_id, _params), do: :ok
@doc """
Modifies an incoming AP object (mastodon format) to our internal format.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment