projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'issue/2009' into 'develop'
[akkoma]
/
lib
/
mix
/
tasks
/
pleroma
/
email.ex
diff --git
a/lib/mix/tasks/pleroma/email.ex
b/lib/mix/tasks/pleroma/email.ex
index 0e4c87598d689d71a10bda6720a48fd9525302f9..bc5facc09655cbb234d43563b8e4176ba4cbfb92 100644
(file)
--- a/
lib/mix/tasks/pleroma/email.ex
+++ b/
lib/mix/tasks/pleroma/email.ex
@@
-1,3
+1,7
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Mix.Tasks.Pleroma.Email do
use Mix.Task
import Mix.Pleroma
defmodule Mix.Tasks.Pleroma.Email do
use Mix.Task
import Mix.Pleroma
@@
-25,13
+29,15
@@
defmodule Mix.Tasks.Pleroma.Email do
def run(["resend_confirmation_emails"]) do
start_pleroma()
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.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
|> Stream.each(&Pleroma.User.try_send_confirmation_email(&1))
|> Stream.run()
end