From 5c09d8d3f199a3f323471f9ba4578371226cd726 Mon Sep 17 00:00:00 2001 From: eal Date: Sat, 23 Dec 2017 16:40:43 +0200 Subject: [PATCH] Unlink follow import process from the one processing request. Mistakes were made. --- lib/pleroma/web/twitter_api/controllers/util_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/web/twitter_api/controllers/util_controller.ex b/lib/pleroma/web/twitter_api/controllers/util_controller.ex index 9079d2f9b..9d5654995 100644 --- a/lib/pleroma/web/twitter_api/controllers/util_controller.ex +++ b/lib/pleroma/web/twitter_api/controllers/util_controller.ex @@ -79,7 +79,7 @@ def follow_import(conn, %{"list" => %Plug.Upload{} = listfile}) do follow_import(conn, %{"list" => File.read!(listfile.path)}) end def follow_import(%{assigns: %{user: user}} = conn, %{"list" => list}) do - Task.start_link(fn -> + Task.start(fn -> String.split(list) |> Enum.map(fn nick -> with %User{} = follower <- User.get_cached_by_ap_id(user.ap_id),