diff options
author | kaniini <ariadne@dereferenced.org> | 2019-08-14 19:05:44 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-08-14 19:05:44 +0000 |
commit | 1754f8ce6d9ee896a57961a354001b713c620cd5 (patch) | |
tree | f50ff6d3a58f472402abc6c9bbfa8ddf6b7d4167 | |
parent | 5bb418a90d9efb1fa889028080c5de3a929ff2cc (diff) | |
download | pleroma-1754f8ce6d9ee896a57961a354001b713c620cd5.tar.gz |
Apply suggestion to lib/pleroma/web/activity_pub/publisher.ex
-rw-r--r-- | lib/pleroma/web/activity_pub/publisher.ex | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex index 987a25377..262529b84 100644 --- 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()) |