From: William Pitcock Date: Sun, 25 Nov 2018 22:11:10 +0000 (+0000) Subject: activitypub: transmogrifier: ensure we send nested object in Create X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cf139e3eec9bf978cfff24044dce5b5c388fa303;p=akkoma activitypub: transmogrifier: ensure we send nested object in Create --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 17b063609..5e3d40d9f 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -616,9 +616,9 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do # internal -> Mastodon # """ - def prepare_outgoing(%{"type" => "Create", "object" => %{"type" => "Note"} = object} = data) do + def prepare_outgoing(%{"type" => "Create", "object" => object_id} = data) do object = - object + Object.normalize(object_id).data |> prepare_object data =