From: William Pitcock Date: Sat, 23 Mar 2019 01:33:41 +0000 (+0000) Subject: relay: use preloaded object since we always have it X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=4cedf454236c73b9337e58f5bf0e20ae65c65313;p=akkoma relay: use preloaded object since we always have it --- diff --git a/lib/pleroma/web/activity_pub/relay.ex b/lib/pleroma/web/activity_pub/relay.ex index 01fef71b9..a7a20ca37 100644 --- a/lib/pleroma/web/activity_pub/relay.ex +++ b/lib/pleroma/web/activity_pub/relay.ex @@ -41,7 +41,7 @@ defmodule Pleroma.Web.ActivityPub.Relay do def publish(%Activity{data: %{"type" => "Create"}} = activity) do with %User{} = user <- get_actor(), - %Object{} = object <- Object.normalize(activity.data["object"]["id"]) do + %Object{} = object <- Object.normalize(activity) do ActivityPub.announce(user, object, nil, true, false) else e -> Logger.error("error: #{inspect(e)}")