Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
e513504e
Commit
e513504e
authored
Apr 14, 2019
by
Sadposter
Browse files
Revert "Assert on the success of enqueue before returning"
This reverts commit
16d8c8b3
. Because it breaks everything
parent
16d8c8b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
e513504e
...
...
@@ -278,10 +278,9 @@ def register(%Ecto.Changeset{} = changeset) 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment