Ver código fonte

Apply suggestion to lib/pleroma/web/activity_pub/publisher.ex

tags/v1.1.4
kaniini 4 anos atrás
pai
commit
1754f8ce6d
1 arquivos alterados com 1 adições e 3 exclusões
  1. +1
    -3
      lib/pleroma/web/activity_pub/publisher.ex

+ 1
- 3
lib/pleroma/web/activity_pub/publisher.ex Ver arquivo

@@ -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())



Carregando…
Cancelar
Salvar