Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

email_notifications: Rename append_sender_to_message to prepend.

Alex Vandiver42e3c4e6ec4b
diff --git a/zerver/lib/email_notifications.py b/zerver/lib/email_notifications.py
index 4123ab09199..74170f47ec0 100644
--- a/zerver/lib/email_notifications.py
+++ b/zerver/lib/email_notifications.py
@@ -192,7 +192,7 @@ def build_message_list(
# with a simple hyperlink.
return re.sub(r"\[(\S*)\]\((\S*)\)", r"\2", content)
- def append_sender_to_message(
+ def prepend_sender_to_message(
message_plain: str, message_html: str, sender: str
) -> Tuple[str, str]:
message_plain = f"{sender}: {message_plain}"
@@ -222,7 +222,7 @@ def build_message_list(
html = fix_emojis(html, user.realm.uri, user.emojiset)
html = fix_spoilers_in_html(html, user.default_language)
if sender:
- plain, html = append_sender_to_message(plain, html, sender)
+ plain, html = prepend_sender_to_message(plain, html, sender)
return {"plain": plain, "html": html}
def build_sender_payload(message: Message) -> Dict[str, Any]: