diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-12-07 21:18:51 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-12-07 21:20:44 +0100 |
commit | 1403798820da21660fb8787ffaf9f54817597636 (patch) | |
tree | 5e52bf9b1f21362944e8240e4803b531e63e6914 /lib | |
parent | e1a2e8b17cca0d9f50b72fcea0ec5ffb8e613db1 (diff) | |
download | pleroma-1403798820da21660fb8787ffaf9f54817597636.tar.gz pleroma-1403798820da21660fb8787ffaf9f54817597636.zip |
instance.reachable?: Limit to binary input
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/instances/instance.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/instances/instance.ex b/lib/pleroma/instances/instance.ex index c9ca3aac7..2e1696fe2 100644 --- a/lib/pleroma/instances/instance.ex +++ b/lib/pleroma/instances/instance.ex @@ -77,7 +77,7 @@ defmodule Pleroma.Instances.Instance do ) end - def reachable?(_), do: true + def reachable?(url_or_host) when is_binary(url_or_host), do: true def set_reachable(url_or_host) when is_binary(url_or_host) do with host <- host(url_or_host), |