This commit is contained in:
Lain Soykaf 2021-12-07 12:12:23 -05:00
parent 500e126604
commit ca8c676867

View file

@ -64,16 +64,16 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
}) })
with {:ok, %{status: code}} = result when code in 200..299 <- with {:ok, %{status: code}} = result when code in 200..299 <-
HTTP.post( HTTP.post(
inbox, inbox,
json, json,
[ [
{"Content-Type", "application/activity+json"}, {"Content-Type", "application/activity+json"},
{"Date", date}, {"Date", date},
{"signature", signature}, {"signature", signature},
{"digest", digest} {"digest", digest}
] ]
) do ) do
if not Map.has_key?(params, :unreachable_since) || params[:unreachable_since] do if not Map.has_key?(params, :unreachable_since) || params[:unreachable_since] do
Instances.set_reachable(inbox) Instances.set_reachable(inbox)
end end