diff options
author | kaniini <ariadne@dereferenced.org> | 2019-08-14 19:05:44 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-08-14 19:15:55 +0000 |
commit | 9aec8fe2421460bb98c7d5e214da6511c7355446 (patch) | |
tree | 45ce5508775f8805fae71e742b252b5a61a7de22 | |
parent | 974488a52e3dc4ef7628c2fb6caa2f110083953b (diff) | |
download | pleroma-9aec8fe2421460bb98c7d5e214da6511c7355446.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 4b037c139..d02c23581 100644 --- a/lib/pleroma/web/activity_pub/publisher.ex +++ b/lib/pleroma/web/activity_pub/publisher.ex @@ -44,9 +44,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()) |