Minor fixes

This commit is contained in:
Shadowfacts 2020-04-21 21:21:08 -04:00
parent 0ca9d02499
commit 610af799ec
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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