actions: Change email in do_refer_friend to use Realm.string_id.

This looks unused anyway, since it's sending mail to @zulip.com.
This commit is contained in:
Rishi Gupta 2017-03-13 10:37:32 -07:00 committed by Tim Abbott
parent 15a8d5acc1
commit a0ca2886ef
1 changed files with 1 additions and 1 deletions

View File

@ -3173,7 +3173,7 @@ def do_refer_friend(user_profile, email):
content = ('Referrer: "%s" <%s>\n' content = ('Referrer: "%s" <%s>\n'
'Realm: %s\n' 'Realm: %s\n'
'Referred: %s') % (user_profile.full_name, user_profile.email, '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,) subject = "Zulip referral: %s" % (email,)
from_email = '"%s" <%s>' % (user_profile.full_name, 'referrals@zulip.com') from_email = '"%s" <%s>' % (user_profile.full_name, 'referrals@zulip.com')
to_email = '"Zulip Referrals" <zulip+referrals@zulip.com>' to_email = '"Zulip Referrals" <zulip+referrals@zulip.com>'