Unlink follow import process from the one processing request.
Mistakes were made.
This commit is contained in:
parent
ad180ad6dd
commit
5c09d8d3f1
@ -79,7 +79,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
|
|||||||
follow_import(conn, %{"list" => File.read!(listfile.path)})
|
follow_import(conn, %{"list" => File.read!(listfile.path)})
|
||||||
end
|
end
|
||||||
def follow_import(%{assigns: %{user: user}} = conn, %{"list" => list}) do
|
def follow_import(%{assigns: %{user: user}} = conn, %{"list" => list}) do
|
||||||
Task.start_link(fn ->
|
Task.start(fn ->
|
||||||
String.split(list)
|
String.split(list)
|
||||||
|> Enum.map(fn nick ->
|
|> Enum.map(fn nick ->
|
||||||
with %User{} = follower <- User.get_cached_by_ap_id(user.ap_id),
|
with %User{} = follower <- User.get_cached_by_ap_id(user.ap_id),
|
||||||
|
Loading…
Reference in New Issue
Block a user