From: William Pitcock Date: Sat, 1 Sep 2018 23:44:19 +0000 (+0000) Subject: transmogrifier: fix peertube/plume actor handling X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=03e92977cb95ccc81b92c927049a3e4421917cd2;p=akkoma transmogrifier: fix peertube/plume actor handling --- 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 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier 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