projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bb418a
)
Apply suggestion to lib/pleroma/web/activity_pub/publisher.ex
author
kaniini
<ariadne@dereferenced.org>
Wed, 14 Aug 2019 19:05:44 +0000
(19:05 +0000)
committer
kaniini
<ariadne@dereferenced.org>
Wed, 14 Aug 2019 19:05:44 +0000
(19:05 +0000)
lib/pleroma/web/activity_pub/publisher.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/publisher.ex
b/lib/pleroma/web/activity_pub/publisher.ex
index 987a253772cebaf54423378d77499bf27c429b58..262529b8412723f0f43d3bb9b9692ecee94d6aa5 100644
(file)
--- a/
lib/pleroma/web/activity_pub/publisher.ex
+++ b/
lib/pleroma/web/activity_pub/publisher.ex
@@
-46,9
+46,7
@@
defmodule Pleroma.Web.ActivityPub.Publisher do
"""
def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = params) do
Logger.info("Federating #{id} to #{inbox}")
- uri = URI.parse(inbox)
- host = uri.host
- path = uri.path
+ %{host: host, path: path} = URI.parse(inbox)
digest = "SHA-256=" <> (:crypto.hash(:sha256, json) |> Base.encode64())