transmogrifier: fix peertube/plume actor handling
This commit is contained in:
parent
303af9ba4c
commit
03e92977cb
@ -33,9 +33,9 @@ def get_actor(%{"actor" => actor}) when is_map(actor) do
|
||||
@doc """
|
||||
Checks that an imported AP object's actor matches the domain it came from.
|
||||
"""
|
||||
def contain_origin(id, %{"actor" => actor}) do
|
||||
def contain_origin(id, %{"actor" => actor} = params) do
|
||||
id_uri = URI.parse(id)
|
||||
actor_uri = URI.parse(actor)
|
||||
actor_uri = URI.parse(get_actor(params))
|
||||
|
||||
if id_uri.host == actor_uri.host do
|
||||
:ok
|
||||
|
Loading…
Reference in New Issue
Block a user