Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
notifications: Fix composebox notification escaping
Wesley Aptekar-Cassels4173070b3d24
diff --git a/static/js/notifications.js b/static/js/notifications.jsindex 8f8a32180d2..d2aa64c1caa 100644--- a/static/js/notifications.js+++ b/static/js/notifications.js@@ -564,19 +564,21 @@ exports.send_test_notification = function (content) {]);};+// Note that this returns values that are not HTML-escaped, for use in+// handlebars templates that will do further escaping.function get_message_header(message) {if (message.type === "stream") {return message.stream + " > " + message.topic;}if (message.display_recipient.length > 2) {- return i18n.t("group private messages with __recipient__", {+ return i18n.t("group private messages with __- recipient__", {recipient: message.display_reply_to,});}if (people.is_current_user(message.reply_to)) {return i18n.t("private messages with yourself");}- return i18n.t("private messages with __recipient__", {recipient: message.display_reply_to});+ return i18n.t("private messages with __- recipient__", {recipient: message.display_reply_to});}exports.get_local_notify_mix_reason = function (message) {diff --git a/tools/lib/capitalization.py b/tools/lib/capitalization.pyindex cceee4bdd0c..2bd50f65c37 100644--- a/tools/lib/capitalization.py+++ b/tools/lib/capitalization.py@@ -140,8 +140,8 @@ IGNORED_PHRASES = [r"\bN\b",# Capital c feels obtrusive in clear status optionr"clear",- r"group private messages with __recipient__",- r"private messages with __recipient__",+ r"group private messages with __- recipient__",+ r"private messages with __- recipient__",r"private messages with yourself",# TO CLEAN UP# Just want to avoid churning login.html right now