mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Apply suggestion to lib/pleroma/web/activity_pub/publisher.ex
This commit is contained in:
parent
5bb418a90d
commit
1754f8ce6d
1 changed files with 1 additions and 3 deletions
|
@ -46,9 +46,7 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
|
||||||
"""
|
"""
|
||||||
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.info("Federating #{id} to #{inbox}")
|
||||||
uri = URI.parse(inbox)
|
%{host: host, path: path} = URI.parse(inbox)
|
||||||
host = uri.host
|
|
||||||
path = uri.path
|
|
||||||
|
|
||||||
digest = "SHA-256=" <> (:crypto.hash(:sha256, json) |> Base.encode64())
|
digest = "SHA-256=" <> (:crypto.hash(:sha256, json) |> Base.encode64())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue