From 362899e7972c97518c9144c9dcf59719f2e47a22 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Tue, 21 May 2024 13:31:41 +0500 Subject: [PATCH] fix: Added message to Course update notification in case of small text (#34819) --- cms/djangoapps/contentstore/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index 9bcd77c3eea9..9ed3f1ce4b36 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -2251,7 +2251,7 @@ def send_course_update_notification(course_key, content, user): notification_data = CourseNotificationData( course_key=course_key, content_context={ - "course_update_content": text_content, + "course_update_content": text_content if len(text_content.strip()) < 10 else "Click here to view", **extra_context, }, notification_type="course_update",