diff --git a/lib/clacks/activitypub.ex b/lib/clacks/activitypub.ex index 3e04b73..579855c 100644 --- a/lib/clacks/activitypub.ex +++ b/lib/clacks/activitypub.ex @@ -135,6 +135,6 @@ defmodule Clacks.ActivityPub do @spec context_id(id :: String.t()) :: String.t() def context_id(id) do - "data:,clickityclack" <> id + "data:,clickityclack/" <> id end end diff --git a/lib/clacks/activitypub/federator.ex b/lib/clacks/activitypub/federator.ex index 2f93856..15a71d7 100644 --- a/lib/clacks/activitypub/federator.ex +++ b/lib/clacks/activitypub/federator.ex @@ -25,7 +25,7 @@ defmodule Clacks.ActivityPub.Federator do @spec federate(activity :: map(), inbox :: String.t()) :: :ok | {:error, any()} def federate(%{"actor" => actor_id} = activity, inbox) do - Logger.info("Federating #{activity["id"]} to #{inbox}") + Logger.debug("Federating #{activity["id"]} to #{inbox}") %{host: inbox_host, path: inbox_path} = URI.parse(inbox) {:ok, body} = Jason.encode(activity) @@ -71,7 +71,7 @@ defmodule Clacks.ActivityPub.Federator do shared_inbox_for(actor) true -> - actor.data["inbox"] + actor["inbox"] end end