Commit 970b2b7f authored by Francis Dinh's avatar Francis Dinh

Fix logic

parent 806b2d53
Pipeline #10670 passed with stages
in 3 minutes and 32 seconds
......@@ -307,8 +307,9 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
with lines <- String.split(list, "\n"),
followed_identifiers <-
Enum.map(lines, fn line ->
String.split(line, ",") |> List.delete("Account address")
end),
String.split(line, ",") |> List.first()
end)
|> List.delete("Account address"),
{:ok, _} = Task.start(fn -> User.follow_import(follower, followed_identifiers) end) do
json(conn, "job started")
end
......
Markdown is supported
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