Commit 57d90e7a authored by kaniini's avatar kaniini

activitypub: relay: fix improper use of Object.normalize()

parent 5ea64f4b
......@@ -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)}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment