From fa0c06a02b1f99049c9668fa5a7a0707107aad78 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"],