Commit 7295a05c authored by Ariadne Conill's avatar Ariadne Conill

object: containment: also allow OStatus object IDs through when comparing origins

parent a177f22e
......@@ -41,7 +41,7 @@ def contain_origin(id, %{"actor" => _actor} = params) do
id_uri = URI.parse(id)
actor_uri = URI.parse(get_actor(params))
if id_uri.host == actor_uri.host do
if id_uri.host == actor_uri.host || id_uri.scheme == "tag" do
:ok
else
:error
......
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