diff options
author | rinpatch <rin@patch.cx> | 2022-01-11 20:47:02 +0000 |
---|---|---|
committer | rinpatch <rin@patch.cx> | 2022-01-11 20:47:02 +0000 |
commit | 62a45747d90c2ad400373650b9c03693acfa7708 (patch) | |
tree | 84df15744e8b23c8bd279443d648affbed960827 /lib | |
parent | 0b2119d4a791b3623b304b0bab683609d23271d4 (diff) | |
parent | b34f0a6e514fd7e6b0920c0443a93924cd75378f (diff) | |
download | pleroma-2.4.2.tar.gz |
Merge branch 'release/2.4.2' into 'stable'v2.4.2
2.4.2 Release
See merge request pleroma/pleroma!3599
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/publisher.ex | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex index 590beef64..c8cdd429e 100644 --- a/lib/pleroma/web/activity_pub/publisher.ex +++ b/lib/pleroma/web/activity_pub/publisher.ex @@ -63,18 +63,17 @@ defmodule Pleroma.Web.ActivityPub.Publisher do date: date }) - with {:ok, %{status: code}} when code in 200..299 <- - result = - HTTP.post( - inbox, - json, - [ - {"Content-Type", "application/activity+json"}, - {"Date", date}, - {"signature", signature}, - {"digest", digest} - ] - ) do + with {:ok, %{status: code}} = result when code in 200..299 <- + HTTP.post( + inbox, + json, + [ + {"Content-Type", "application/activity+json"}, + {"Date", date}, + {"signature", signature}, + {"digest", digest} + ] + ) do if not Map.has_key?(params, :unreachable_since) || params[:unreachable_since] do Instances.set_reachable(inbox) end |