projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
e219e50
)
Merge branch 'pleroma-result-1_13' into 'develop'
author
lain
<lain@soykaf.club>
Tue, 7 Dec 2021 16:55:01 +0000
(16:55 +0000)
committer
lain
<lain@soykaf.club>
Tue, 7 Dec 2021 16:55:01 +0000
(16:55 +0000)
move result into with guard
See merge request pleroma/pleroma!3557
lib/pleroma/web/activity_pub/publisher.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/publisher.ex
b/lib/pleroma/web/activity_pub/publisher.ex
index 4f29a441136a2377eb3a7f1cd6ea07430c708e86..849b359d02d3aec7b4db25c15144cbaf3bbf01c1 100644
(file)
--- 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,