Make emojis be 20px tall in missed message emails.

(imported from commit 687b099f19d69f41876571c08a0627f061067f86)
This commit is contained in:
Steve Howell 2014-01-10 16:44:02 -05:00 committed by Waseem Daher
parent 1a679795e1
commit e832e937c5
1 changed files with 5 additions and 0 deletions

View File

@ -2019,6 +2019,9 @@ def build_message_list(user_profile, messages):
# with a simple hyperlink.
return re.sub(r"\[(\S*)\]\((\S*)\)", r"\2", content)
def fix_emoji_sizes(html):
return html.replace(' class="emoji"', ' height="20px"')
def build_message_payload(message):
plain = message.content
plain = fix_plaintext_image_urls(plain)
@ -2026,6 +2029,8 @@ def build_message_list(user_profile, messages):
html = message.rendered_content
html = relative_to_full_url(html)
html = fix_emoji_sizes(html)
return {'plain': plain, 'html': html}
def build_sender_payload(message):