Merge branch 'pleroma-result-1_13' into 'develop'

move result into with guard

See merge request pleroma/pleroma!3557
This commit is contained in:
lain 2021-12-07 16:55:01 +00:00 committed by rinpatch
parent 991b26f494
commit bf0b32c9aa
1 changed files with 11 additions and 12 deletions

View File

@ -63,8 +63,7 @@ def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = pa
date: date date: date
}) })
with {:ok, %{status: code}} when code in 200..299 <- with {:ok, %{status: code}} = result when code in 200..299 <-
result =
HTTP.post( HTTP.post(
inbox, inbox,
json, json,