projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5879d36
)
added check user email for welcome email
author
Maksim Pechnikov
<parallel588@gmail.com>
Wed, 22 Jul 2020 13:00:49 +0000
(16:00 +0300)
committer
Maksim Pechnikov
<parallel588@gmail.com>
Wed, 22 Jul 2020 13:00:49 +0000
(16:00 +0300)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 29526b8fd7349c409d0f88d35ef762cf6bdc6749..5bc256b50c4c5d094aa828b97a2e9e3f246a9da6 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-729,7
+729,7
@@
defmodule Pleroma.User do
end
end
- def send_welcome_email(
user
) do
+ def send_welcome_email(
%User{email: email} = user) when is_binary(email
) do
if User.WelcomeEmail.enabled?() do
User.WelcomeEmail.send_email(user)
{:ok, :enqueued}
@@
-737,6
+737,7
@@
defmodule Pleroma.User do
{:ok, :noop}
end
end
+ def send_welcome_email(_), do: {:ok, :noop}
def try_send_confirmation_email(%User{} = user) do
if user.confirmation_pending &&