Skip to content
Snippets Groups Projects
Commit d89193a8 authored by eal's avatar eal
Browse files

Allow uploading a file for follow import.

parent 39ccfdc0
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,9 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
json conn, Enum.into(Formatter.get_custom_emoji(), %{})
end
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
errors = list
|> String.split()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment