activitypub: relay: fix improper use of Object.normalize()
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 25 Nov 2018 21:43:26 +0000 (21:43 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 4 Dec 2018 04:52:09 +0000 (04:52 +0000)
lib/pleroma/web/activity_pub/relay.ex

index fcdc6b1c01681fef5dd4a811b3042bd86b83e0ff..a48a91ef72e553702f9803f992b6fd4942a69317 100644 (file)
@@ -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)}")