Merge branch 'pleroma-result-1_13' into 'develop'
move result into with guard See merge request pleroma/pleroma!3557
This commit is contained in:
commit
500e126604
1 changed files with 1 additions and 2 deletions
|
@ -63,8 +63,7 @@ def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = pa
|
|||
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,
|
||||
|
|
Loading…
Reference in a new issue