Use follow_all in autofollow.
This commit is contained in:
parent
26938d65fd
commit
65fc2df7cc
@ -247,10 +247,7 @@ defmodule Pleroma.User do
|
|||||||
)
|
)
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
|
|
||||||
autofollowed_users
|
follow_all(user, autofollowed_users)
|
||||||
|> Enum.reduce({:ok, user}, fn other_user, {:ok, user} ->
|
|
||||||
follow(user, other_user)
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc "Inserts provided changeset, performs post-registration actions (confirmation email sending etc.)"
|
@doc "Inserts provided changeset, performs post-registration actions (confirmation email sending etc.)"
|
||||||
|
Loading…
Reference in New Issue
Block a user