[#534] Federation publish requests status control (enforced 2xx response code check).
This commit is contained in:
parent
f161a92cb1
commit
20b54366ee
3 changed files with 3 additions and 3 deletions
|
|
@ -169,7 +169,7 @@ defmodule Pleroma.Web.Salmon do
|
|||
|
||||
defp send_to_user(url, feed, poster) when is_binary(url) do
|
||||
with {:reachable, true} <- {:reachable, Instances.reachable?(url)},
|
||||
{:ok, %{status: code}} <-
|
||||
{:ok, %{status: code}} when code in 200..299 <-
|
||||
poster.(
|
||||
url,
|
||||
feed,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue