From a0ca2886ef674a16be04c318ecc7fbc123ac5516 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Mon, 13 Mar 2017 10:37:32 -0700 Subject: [PATCH] actions: Change email in do_refer_friend to use Realm.string_id. This looks unused anyway, since it's sending mail to @zulip.com. --- zerver/lib/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index f246f0ae10..5c5c577a2d 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -3173,7 +3173,7 @@ def do_refer_friend(user_profile, email): content = ('Referrer: "%s" <%s>\n' 'Realm: %s\n' 'Referred: %s') % (user_profile.full_name, user_profile.email, - user_profile.realm.domain, email) + user_profile.realm.string_id, email) subject = "Zulip referral: %s" % (email,) from_email = '"%s" <%s>' % (user_profile.full_name, 'referrals@zulip.com') to_email = '"Zulip Referrals" '