Minor fixes
This commit is contained in:
parent
0ca9d02499
commit
610af799ec
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue