mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-09 10:19:19 +00:00
Linting.
This commit is contained in:
parent
66b60f1ee2
commit
eb7bbe3fc8
1 changed files with 10 additions and 10 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue