mirror of https://github.com/zulip/zulip.git
fix use of EXTERNAL_URL to EXTERNAL_HOST, and some typos
(imported from commit 3e6e0f337671b289202bc86c6224854b6ee623c5)
This commit is contained in:
parent
d2d695dcb6
commit
5973f20b69
|
@ -30,4 +30,4 @@ The Zulip Team
|
||||||
|
|
||||||
Note: click here to open your Zulip Settings page and disable future email notifications:
|
Note: click here to open your Zulip Settings page and disable future email notifications:
|
||||||
|
|
||||||
https://{{ external_url }}/#settings
|
https://{{ external_host }}/#settings
|
||||||
|
|
|
@ -37,4 +37,4 @@ While you were away you received {{ message_count }} new message{{ message_count
|
||||||
<br>
|
<br>
|
||||||
The Zulip Team</p>
|
The Zulip Team</p>
|
||||||
|
|
||||||
<p>Note: click <a href="https://zulip.com/#settings">here</a> to open your Zulip Settings page and disable future email notifications</p>
|
<p>Note: click <a href="https://{{ external_host }}/#settings">here</a> to open your Zulip Settings page and disable future email notifications</p>
|
||||||
|
|
|
@ -1919,9 +1919,9 @@ def do_send_missedmessage_events(user_profile, missed_messages):
|
||||||
template_payload = {'name': user_profile.full_name,
|
template_payload = {'name': user_profile.full_name,
|
||||||
'messages': build_message_list(user_profile, missed_messages),
|
'messages': build_message_list(user_profile, missed_messages),
|
||||||
'message_count': len(missed_messages),
|
'message_count': len(missed_messages),
|
||||||
'url': 'https://%s' % (settings.EXTERNAL_URL,),
|
'url': 'https://%s' % (settings.EXTERNAL_HOST,),
|
||||||
'reply_warning': False,
|
'reply_warning': False,
|
||||||
'externl_host': settings.EXTERNAL_URL}
|
'external_host': settings.EXTERNAL_HOST}
|
||||||
headers = {}
|
headers = {}
|
||||||
if all(msg.recipient.type in (Recipient.HUDDLE, Recipient.PERSONAL)
|
if all(msg.recipient.type in (Recipient.HUDDLE, Recipient.PERSONAL)
|
||||||
for msg in missed_messages):
|
for msg in missed_messages):
|
||||||
|
@ -1942,10 +1942,10 @@ def do_send_missedmessage_events(user_profile, missed_messages):
|
||||||
# There are some @-mentions mixed in with personals
|
# There are some @-mentions mixed in with personals
|
||||||
template_payload['mention'] = True
|
template_payload['mention'] = True
|
||||||
template_payload['reply_warning'] = True
|
template_payload['reply_warning'] = True
|
||||||
headers['Reply-To'] = "Nobody <%>" % (settings.NOREPLY_EMAIL_ADDRESS,)
|
headers['Reply-To'] = "Nobody <%s>" % (settings.NOREPLY_EMAIL_ADDRESS,)
|
||||||
|
|
||||||
subject = "Missed Zulip%s from %s" % (plural_messages, sender_str)
|
subject = "Missed Zulip%s from %s" % (plural_messages, sender_str)
|
||||||
from_email = "%s (via Zulip) <%>" % (sender_str, settings.NOREPLY_EMAIL_ADDRESS)
|
from_email = "%s (via Zulip) <%s>" % (sender_str, settings.NOREPLY_EMAIL_ADDRESS)
|
||||||
|
|
||||||
text_content = loader.render_to_string('zerver/missed_message_email.txt', template_payload)
|
text_content = loader.render_to_string('zerver/missed_message_email.txt', template_payload)
|
||||||
html_content = loader.render_to_string('zerver/missed_message_email_html.txt', template_payload)
|
html_content = loader.render_to_string('zerver/missed_message_email_html.txt', template_payload)
|
||||||
|
|
Loading…
Reference in New Issue