|
|
@ -47,7 +47,7 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
|
|
|
|
* `id`: the ActivityStreams URI of the message
|
|
|
|
* `id`: the ActivityStreams URI of the message
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = params) do
|
|
|
|
def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = params) do
|
|
|
|
Logger.info("Federating #{id} to #{inbox}")
|
|
|
|
Logger.debug("Federating #{id} to #{inbox}")
|
|
|
|
%{host: host, path: path} = URI.parse(inbox)
|
|
|
|
%{host: host, path: path} = URI.parse(inbox)
|
|
|
|
|
|
|
|
|
|
|
|
digest = "SHA-256=" <> (:crypto.hash(:sha256, json) |> Base.encode64())
|
|
|
|
digest = "SHA-256=" <> (:crypto.hash(:sha256, json) |> Base.encode64())
|
|
|
|