[#534] Refactoring / tweaks per MR review.
This commit is contained in:
parent
d99650270b
commit
9560abea10
10 changed files with 36 additions and 57 deletions
|
|
@ -168,8 +168,7 @@ defmodule Pleroma.Web.Salmon do
|
|||
do: send_to_user(salmon, feed, poster)
|
||||
|
||||
def send_to_user(url, feed, poster) when is_binary(url) do
|
||||
with {:reachable, true} <- {:reachable, Instances.reachable?(url)},
|
||||
{:ok, %{status: code}} when code in 200..299 <-
|
||||
with {:ok, %{status: code}} when code in 200..299 <-
|
||||
poster.(
|
||||
url,
|
||||
feed,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue