Commit 16d8c8b3 authored by Sadposter's avatar Sadposter
Browse files

Assert on the success of enqueue before returning

parent 5e455577
...@@ -278,6 +278,7 @@ def register(%Ecto.Changeset{} = changeset) do ...@@ -278,6 +278,7 @@ def register(%Ecto.Changeset{} = changeset) do
def try_send_confirmation_email(%User{} = user) do def try_send_confirmation_email(%User{} = user) do
if user.info.confirmation_pending && if user.info.confirmation_pending &&
Pleroma.Config.get([:instance, :account_activation_required]) do Pleroma.Config.get([:instance, :account_activation_required]) do
:ok =
user user
|> Pleroma.Emails.UserEmail.account_confirmation_email() |> Pleroma.Emails.UserEmail.account_confirmation_email()
|> Pleroma.Emails.Mailer.deliver_async() |> Pleroma.Emails.Mailer.deliver_async()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment