Commit d89193a8 authored by eal's avatar eal
Browse files

Allow uploading a file for follow import.

parent 39ccfdc0
......@@ -74,6 +74,9 @@ def emoji(conn, _params) do
json conn, Enum.into(Formatter.get_custom_emoji(), %{})
def follow_import(conn, %{"list" => %Plug.Upload{} = listfile}) do
follow_import(conn, %{"list" =>!(listfile.path)})
def follow_import(%{assigns: %{user: user}} = conn, %{"list" => list}) do
errors = list
|> String.split()
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