projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e45557
)
Assert on the success of enqueue before returning
author
Sadposter
<hannah+pleroma@coffee-and-dreams.uk>
Sun, 14 Apr 2019 15:05:26 +0000
(16:05 +0100)
committer
Sadposter
<hannah+pleroma@coffee-and-dreams.uk>
Sun, 14 Apr 2019 15:05:26 +0000
(16:05 +0100)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 78eb29ddd8839dc73bee3dac5905cb63ebf59030..f3ea5289e9396ee86b836f44b16a280cc0dec8f7 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-278,9
+278,10
@@
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
- user
- |> Pleroma.Emails.UserEmail.account_confirmation_email()
- |> Pleroma.Emails.Mailer.deliver_async()
+ :ok =
+ user
+ |> Pleroma.Emails.UserEmail.account_confirmation_email()
+ |> Pleroma.Emails.Mailer.deliver_async()
{:ok, :enqueued}
else