summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2021-12-07 16:55:01 +0000
committerlain <lain@soykaf.club>2021-12-07 16:55:01 +0000
commit500e126604a69436ce3e48e93d21711940f978e6 (patch)
treed9cc2fd85fca19599da4f800752cf945dca295b8
parente219e504ceb059a70b02875ab5102cb0333100d7 (diff)
parent8af53101fbeb0d4855ffa2b33069e833abf2e825 (diff)
Merge branch 'pleroma-result-1_13' into 'develop'
move result into with guard See merge request pleroma/pleroma!3557
-rw-r--r--lib/pleroma/web/activity_pub/publisher.ex3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex
index 4f29a4411..849b359d0 100644
--- a/lib/pleroma/web/activity_pub/publisher.ex
+++ b/lib/pleroma/web/activity_pub/publisher.ex
@@ -63,8 +63,7 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
date: date
})
- with {:ok, %{status: code}} when code in 200..299 <-
- result =
+ with {:ok, %{status: code}} = result when code in 200..299 <-
HTTP.post(
inbox,
json,