mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Revert "Assert on the success of enqueue before returning"
This reverts commit 16d8c8b33b
.
Because it breaks everything
This commit is contained in:
parent
16d8c8b33b
commit
e513504e88
1 changed files with 3 additions and 4 deletions
|
@ -278,10 +278,9 @@ defmodule Pleroma.User do
|
|||
def try_send_confirmation_email(%User{} = user) do
|
||||
if user.info.confirmation_pending &&
|
||||
Pleroma.Config.get([:instance, :account_activation_required]) do
|
||||
:ok =
|
||||
user
|
||||
|> Pleroma.Emails.UserEmail.account_confirmation_email()
|
||||
|> Pleroma.Emails.Mailer.deliver_async()
|
||||
user
|
||||
|> Pleroma.Emails.UserEmail.account_confirmation_email()
|
||||
|> Pleroma.Emails.Mailer.deliver_async()
|
||||
|
||||
{:ok, :enqueued}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue