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

This commit is contained in:
William Pitcock 2018-11-25 21:43:26 +00:00
parent 5ea64f4bf9
commit 57d90e7afe
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def unfollow(target_instance) do
def publish(%Activity{data: %{"type" => "Create"}} = activity) do def publish(%Activity{data: %{"type" => "Create"}} = activity) do
with %User{} = user <- get_actor(), 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) ActivityPub.announce(user, object)
else else
e -> Logger.error("error: #{inspect(e)}") e -> Logger.error("error: #{inspect(e)}")