X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=inline;f=lib%2Fpleroma%2Finstances.ex;h=7315bd7cbeb170f5afc081a073cabb32d9b93c52;hb=ccddedb504e5f03655c128edb074671b1f815f24;hp=1b05d573c053beacb4b9d3c0e476338a00e39d23;hpb=93a0eeab16dc98b9278ee8649b233c3acd7807ec;p=akkoma
diff --git a/lib/pleroma/instances.ex b/lib/pleroma/instances.ex
index 1b05d573c..7315bd7cb 100644
--- a/lib/pleroma/instances.ex
+++ b/lib/pleroma/instances.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Instances do
@@ -11,6 +11,7 @@ defmodule Pleroma.Instances do
defdelegate reachable?(url_or_host), to: @adapter
defdelegate set_reachable(url_or_host), to: @adapter
defdelegate set_unreachable(url_or_host, unreachable_since \\ nil), to: @adapter
+ defdelegate get_consistently_unreachable(), to: @adapter
def set_consistently_unreachable(url_or_host),
do: set_unreachable(url_or_host, reachability_datetime_threshold())