Use follow_all in autofollow.

This commit is contained in:
lain 2019-01-09 11:38:45 +01:00
parent 26938d65fd
commit 65fc2df7cc

View file

@ -247,10 +247,7 @@ defp autofollow_users(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.)"