instance.reachable?: Limit to binary input
[akkoma] / lib / pleroma / instances / instance.ex
index c9ca3aac717ec63546d450216109d36a904ffbdf..2e1696fe217a1a401d3c649071fed8328df184ad 100644 (file)
@@ -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),