From: eal Date: Sat, 23 Dec 2017 14:40:43 +0000 (+0200) Subject: Unlink follow import process from the one processing request. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5c09d8d3f199a3f323471f9ba4578371226cd726;p=akkoma Unlink follow import process from the one processing request. Mistakes were made. --- 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 @@ defmodule Pleroma.Web.TwitterAPI.UtilController 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),