[#534] Updating external instances reachability on incoming federation.

This commit is contained in:
Ivan Tashkinov 2019-01-24 17:37:23 +03:00
commit 8654a591f0
9 changed files with 49 additions and 7 deletions

View file

@ -173,7 +173,10 @@ defmodule Pleroma.Web.Salmon do
poster.(
url,
feed,
[{"Content-Type", "application/magic-envelope+xml"}]
[
{"Content-Type", "application/magic-envelope+xml"},
{"referer", Pleroma.Web.Endpoint.url()}
]
) do
Instances.set_reachable(url)
Logger.debug(fn -> "Pushed to #{url}, code #{code}" end)