Fix tests.

This commit is contained in:
lain 2018-03-24 15:09:09 +01:00
commit 847cb15626
2 changed files with 9 additions and 2 deletions

View file

@ -328,8 +328,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
end
def get_external_profile(for_user, uri) do
IO.inspect(uri)
with %User{} = user <- User.get_or_fetch_by_nickname(uri) do
with %User{} = user <- User.get_or_fetch(uri) do
spawn(fn ->
with url <- user.info["topic"],
{:ok, %{body: body}} <- @httpoison.get(url, [], follow_redirect: true, timeout: 10000, recv_timeout: 20000) do