These functions in Pleroma.Instances should be defdelegates to Pleroma.Instances.Instance
This commit is contained in:
parent
40f170f0a7
commit
1a337dcc18
|
@ -7,16 +7,15 @@ defmodule Pleroma.Instances do
|
||||||
|
|
||||||
alias Pleroma.Instances.Instance
|
alias Pleroma.Instances.Instance
|
||||||
|
|
||||||
def filter_reachable(urls_or_hosts), do: Instance.filter_reachable(urls_or_hosts)
|
defdelegate filter_reachable(urls_or_hosts), to: Instance
|
||||||
|
|
||||||
def reachable?(url_or_host), do: Instance.reachable?(url_or_host)
|
defdelegate reachable?(url_or_host), to: Instance
|
||||||
|
|
||||||
def set_reachable(url_or_host), do: Instance.set_reachable(url_or_host)
|
defdelegate set_reachable(url_or_host), to: Instance
|
||||||
|
|
||||||
def set_unreachable(url_or_host, unreachable_since \\ nil),
|
defdelegate set_unreachable(url_or_host, unreachable_since \\ nil), to: Instance
|
||||||
do: Instance.set_unreachable(url_or_host, unreachable_since)
|
|
||||||
|
|
||||||
def get_consistently_unreachable, do: Instance.get_consistently_unreachable()
|
defdelegate get_consistently_unreachable, to: Instance
|
||||||
|
|
||||||
def set_consistently_unreachable(url_or_host),
|
def set_consistently_unreachable(url_or_host),
|
||||||
do: set_unreachable(url_or_host, reachability_datetime_threshold())
|
do: set_unreachable(url_or_host, reachability_datetime_threshold())
|
||||||
|
|
Loading…
Reference in New Issue