emails: Use macros for email tags in invitation email.

This commit is contained in:
Vishnu KS
2020-10-23 19:00:13 +05:30
committed by Tim Abbott
parent b98434682e
commit eb008fc864
4 changed files with 12 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ def inline_template(template_source_name: str) -> None:
# template, since we'll end up with 2 copipes of those tags.
# Thus, we strip this stuff out if the template extends
# another template.
if template_name != 'email_base_default':
if template_name not in ['email_base_default', 'macros']:
output = strip_unnecesary_tags(output)
if ('zerver/emails/compiled/email_base_default.html' in output or