def run(["resend_confirmation_emails"]) do
start_pleroma()
+ shell_info("Sending emails to all unconfirmed users")
+
Pleroma.User.Query.build(%{
local: true,
deactivated: false,
confirmation_pending: true,
invisible: false
})
- |> Pleroma.Repo.chunk_stream(500, :batches)
+ |> Pleroma.Repo.chunk_stream(500)
|> Stream.each(&Pleroma.User.try_send_confirmation_email(&1))
|> Stream.run()
end