projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into feature/1893-remote-emoji-packs-pagination
[akkoma]
/
lib
/
mix
/
tasks
/
pleroma
/
email.ex
diff --git
a/lib/mix/tasks/pleroma/email.ex
b/lib/mix/tasks/pleroma/email.ex
index 1f543241a6da6614e99228e6694068710953606b..9972cb9880d590acb293903a595a346e93e9ac8b 100644
(file)
--- a/
lib/mix/tasks/pleroma/email.ex
+++ b/
lib/mix/tasks/pleroma/email.ex
@@
-6,7
+6,7
@@
defmodule Mix.Tasks.Pleroma.Email do
@moduledoc File.read!("docs/administration/CLI_tasks/email.md")
def run(["test" | args]) do
@moduledoc File.read!("docs/administration/CLI_tasks/email.md")
def run(["test" | args]) do
-
Mix.Pleroma.
start_pleroma()
+ start_pleroma()
{options, [], []} =
OptionParser.parse(
{options, [], []} =
OptionParser.parse(
@@
-25,13
+25,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