aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2018-12-14 13:52:04 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2018-12-14 13:52:04 +0300
commit07e93f99404787b2c6b6193f90cb4102d00a72f9 (patch)
tree370311ca066e4fc5bfe0e08ee49209f4ab3ce748 /lib
parent9666376f5f98a66f8006971d9b29b2e529b2af68 (diff)
downloadpleroma-07e93f99404787b2c6b6193f90cb4102d00a72f9.tar.gz
[#114] Improved tests.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/emails/user_email.ex7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/pleroma/emails/user_email.ex b/lib/pleroma/emails/user_email.ex
index ee41ce50a..7e3e9b020 100644
--- a/lib/pleroma/emails/user_email.ex
+++ b/lib/pleroma/emails/user_email.ex
@@ -38,7 +38,12 @@ defmodule Pleroma.UserEmail do
|> html_body(html_body)
end
- def user_invitation_email(user, user_invite_token, to_email, to_name \\ nil) do
+ def user_invitation_email(
+ user,
+ %Pleroma.UserInviteToken{} = user_invite_token,
+ to_email,
+ to_name \\ nil
+ ) do
registration_url =
Router.Helpers.redirect_url(
Endpoint,