Commit 5c09d8d3 authored by eal's avatar eal
Browse files

Unlink follow import process from the one processing request.

Mistakes were made.
parent ad180ad6
Pipeline #454 passed with stage
in 3 minutes and 6 seconds
......@@ -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),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment