From: William Pitcock Date: Sun, 25 Nov 2018 21:43:26 +0000 (+0000) Subject: activitypub: relay: fix improper use of Object.normalize() X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=57d90e7afe46a54cc7e1ef14a9b76b0650ed3db6;p=akkoma activitypub: relay: fix improper use of Object.normalize() --- diff --git a/lib/pleroma/web/activity_pub/relay.ex b/lib/pleroma/web/activity_pub/relay.ex index fcdc6b1c0..a48a91ef7 100644 --- a/lib/pleroma/web/activity_pub/relay.ex +++ b/lib/pleroma/web/activity_pub/relay.ex @@ -35,7 +35,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.data["object"]) do ActivityPub.announce(user, object) else e -> Logger.error("error: #{inspect(e)}")