aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-01-09 11:38:45 +0100
committerlain <lain@soykaf.club>2019-01-09 11:38:45 +0100
commit65fc2df7ccc85f07ea64b0f7340b98d5615bb1a3 (patch)
tree07564cd1b545ac03edb0fc64e7b52e4f85ecf0b2 /lib
parent26938d65fd5d59e6f50150f4e2bc924429d7733e (diff)
downloadpleroma-65fc2df7ccc85f07ea64b0f7340b98d5615bb1a3.tar.gz
Use follow_all in autofollow.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/user.ex5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index 916b14350..a49fa3fcd 100644
--- 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.)"