diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-01-28 15:25:06 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-01-28 15:25:06 +0300 |
commit | 1d2f41642cfec5710055bcf8409778bb362beecb (patch) | |
tree | 18ee9598a4dfcde0751c1f53e756e3e8a75331cc /lib/pleroma/web/websub/websub.ex | |
parent | 9560abea102b8cd4927c9350bbd0a1a2f1800ea6 (diff) | |
download | pleroma-1d2f41642cfec5710055bcf8409778bb362beecb.tar.gz |
[#534] Various tweaks. Tests for Instances and Instance.
Diffstat (limited to 'lib/pleroma/web/websub/websub.ex')
-rw-r--r-- | lib/pleroma/web/websub/websub.ex | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/pleroma/web/websub/websub.ex b/lib/pleroma/web/websub/websub.ex index 64eba7221..abe148270 100644 --- a/lib/pleroma/web/websub/websub.ex +++ b/lib/pleroma/web/websub/websub.ex @@ -286,14 +286,10 @@ defmodule Pleroma.Web.Websub do Logger.info(fn -> "Pushed to #{callback}, code #{code}" end) {:ok, code} else - {:reachable, false} -> - Logger.debug(fn -> "Pushing to #{callback} skipped as marked unreachable)" end) - {:error, :noop} - - e -> + {_post_result, response} -> Instances.set_unreachable(callback) - Logger.debug(fn -> "Couldn't push to #{callback}, #{inspect(e)}" end) - {:error, e} + Logger.debug(fn -> "Couldn't push to #{callback}, #{inspect(response)}" end) + {:error, response} end end end |