From: lain Date: Wed, 9 Jan 2019 10:38:45 +0000 (+0100) Subject: Use follow_all in autofollow. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=65fc2df7ccc85f07ea64b0f7340b98d5615bb1a3;p=akkoma Use follow_all in autofollow. --- 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.)"