Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
5c09d8d3
Commit
5c09d8d3
authored
Dec 23, 2017
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/twitter_api/controllers/util_controller.ex
View file @
5c09d8d3
...
...
@@ -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
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment