digest: Don't update context with data already in common context.

This commit is contained in:
Puneeth Chaganti 2019-03-03 09:42:11 +05:30 committed by Tim Abbott
parent dbff533e09
commit 8ca4ca1400
4 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{% extends "zerver/emails/email_base_messages.html" %}
{% block content %}
<p>Hello {{ name }},</p>
<p>Hello {{ user_name }},</p>
<p>A lot has happened on Zulip while you've been away! <a href="{{ realm_uri }}">Visit Zulip</a> to catch up.</p>

View File

@ -1,4 +1,4 @@
Hello {{ name }},
Hello {{ user_name }},
A lot has happened on Zulip while you've been away! Visit
{{ realm_uri }} to catch up.

View File

@ -11,4 +11,4 @@ LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2019/03/01/zulip-2-0-relea
# Typically, adding a dependency only requires a minor version bump, and
# removing a dependency requires a major version bump.
PROVISION_VERSION = '28.8'
PROVISION_VERSION = '28.9'

View File

@ -213,8 +213,6 @@ def handle_digest_email(user_profile_id: int, cutoff: float,
# Start building email template data.
context.update({
'realm_name': user_profile.realm.name,
'name': user_profile.full_name,
'unsubscribe_link': one_click_unsubscribe_link(user_profile, "digest")
})