X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpleroma%2Finstances.ex;h=80addcc52d99d2b89388ca4966009284e060b476;hb=42185d87504ea595138e8e3f5bf9ce6840edd2f1;hp=1b05d573c053beacb4b9d3c0e476338a00e39d23;hpb=93a0eeab16dc98b9278ee8649b233c3acd7807ec;p=akkoma
diff --git a/lib/pleroma/instances.ex b/lib/pleroma/instances.ex
index 1b05d573c..80addcc52 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-2021 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())