From 1ff4e628235d38eb6ab7e52ecfa2dfdb8933e2c6 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 7 Nov 2018 16:19:44 +0100 Subject: [PATCH] Fix tests Signed-off-by: Thomas Citharel --- lib/service/web_finger/web_finger.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/service/web_finger/web_finger.ex b/lib/service/web_finger/web_finger.ex index deec91813..47761a145 100644 --- a/lib/service/web_finger/web_finger.ex +++ b/lib/service/web_finger/web_finger.ex @@ -91,7 +91,8 @@ defmodule Mobilizon.Service.WebFinger do Logger.debug(inspect(address)) - with {:ok, %HTTPoison.Response{} = response} <- + with false <- is_nil(domain), + {:ok, %HTTPoison.Response{} = response} <- HTTPoison.get( address, [Accept: "application/json, application/activity+json, application/jrd+json"],