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
ultem
pleroma
Commits
5e455577
Commit
5e455577
authored
Apr 14, 2019
by
Sadposter
Browse files
Always return {atom, _} from try_send_confirmation
parent
ec42b639
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
5e455577
...
...
@@ -270,7 +270,7 @@ defmodule Pleroma.User do
with
{
:ok
,
user
}
<-
Repo
.
insert
(
changeset
),
{
:ok
,
user
}
<-
autofollow_users
(
user
),
{
:ok
,
_
}
<-
Pleroma
.
User
.
WelcomeMessage
.
post_welcome_message_to_user
(
user
),
:ok
<-
try_send_confirmation_email
(
user
)
do
{
:ok
,
_
}
<-
try_send_confirmation_email
(
user
)
do
{
:ok
,
user
}
end
end
...
...
@@ -281,6 +281,8 @@ defmodule Pleroma.User do
user
|>
Pleroma
.
Emails
.
UserEmail
.
account_confirmation_email
()
|>
Pleroma
.
Emails
.
Mailer
.
deliver_async
()
{
:ok
,
:enqueued
}
else
{
:ok
,
:noop
}
end
...
...
Write
Preview
Supports
Markdown
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