relay: use preloaded object since we always have it

This commit is contained in:
William Pitcock 2019-03-23 01:33:41 +00:00
parent aaec91b9a1
commit 4cedf45423
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def unfollow(target_instance) 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)}")