From 03e92977cb95ccc81b92c927049a3e4421917cd2 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 1 Sep 2018 23:44:19 +0000 Subject: [PATCH] transmogrifier: fix peertube/plume actor handling --- lib/pleroma/web/activity_pub/transmogrifier.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index b75422fc6..4a3a82195 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -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