projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26938d6
)
Use follow_all in autofollow.
author
lain
<lain@soykaf.club>
Wed, 9 Jan 2019 10:38:45 +0000
(11:38 +0100)
committer
lain
<lain@soykaf.club>
Wed, 9 Jan 2019 10:38:45 +0000
(11:38 +0100)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 916b1435092bea90ace31e88b93cc851ff155f8d..a49fa3fcd74c5f72c130c3249a4deb1e1fa19602 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-247,10
+247,7
@@
defmodule Pleroma.User do
)
|> Repo.all()
- autofollowed_users
- |> Enum.reduce({:ok, user}, fn other_user, {:ok, user} ->
- follow(user, other_user)
- end)
+ follow_all(user, autofollowed_users)
end
@doc "Inserts provided changeset, performs post-registration actions (confirmation email sending etc.)"