Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_report: Update topic name template.
PieterCKc77543392f81
diff --git a/zerver/lib/message_report.py b/zerver/lib/message_report.pyindex 8ccff1cbcfd..ce79a52277e 100644--- a/zerver/lib/message_report.py+++ b/zerver/lib/message_report.py@@ -141,7 +141,7 @@ def send_message_report()content += reported_message_preview_block- topic_name = _("{fullname}'s moderation requests").format(fullname=reported_user.full_name)+ topic_name = _("{fullname} moderation").format(fullname=reported_user.full_name)if moderation_request_channel.topics_policy == StreamTopicsPolicyEnum.empty_topic_only.value:topic_name = ""diff --git a/zerver/tests/test_message_report.py b/zerver/tests/test_message_report.pyindex 50fd905a34c..9fe678da34d 100644--- a/zerver/tests/test_message_report.py+++ b/zerver/tests/test_message_report.py@@ -95,7 +95,7 @@ class ReportMessageTest(ZulipTestCase):)self.assertEqual(submitted_report.content, expected_message.strip())- expected_report_topic = f"{reported_user.full_name}'s moderation requests"+ expected_report_topic = f"{reported_user.full_name} moderation"self.assertEqual(submitted_report.topic_name(), expected_report_topic)def build_direct_message_report_template(