Browse Source

Minor fixes

master
Shadowfacts 1 year ago
parent
commit
610af799ec
Signed by: shadowfacts GPG Key ID: 94A5AB95422746E5
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      lib/clacks/activitypub.ex
  2. +2
    -2
      lib/clacks/activitypub/federator.ex

+ 1
- 1
lib/clacks/activitypub.ex 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

+ 2
- 2
lib/clacks/activitypub/federator.ex 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


Loading…
Cancel
Save