forked from AkkomaGang/akkoma
object: containment: also allow OStatus object IDs through when comparing origins
This commit is contained in:
parent
a177f22e02
commit
7295a05cee
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def contain_origin(id, %{"actor" => _actor} = params) do
|
||||||
id_uri = URI.parse(id)
|
id_uri = URI.parse(id)
|
||||||
actor_uri = URI.parse(get_actor(params))
|
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
|
:ok
|
||||||
else
|
else
|
||||||
:error
|
:error
|
||||||
|
|
Loading…
Reference in a new issue