From 0e70ca2f6b932d96d3e3ba2b52bb5f965db05561 Mon Sep 17 00:00:00 2001 From: Jawad Khan Date: Tue, 17 Dec 2024 06:09:20 +0500 Subject: [PATCH] fix: Added topic id in notification context --- .../discussion/rest_api/discussions_notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/discussion/rest_api/discussions_notifications.py b/lms/djangoapps/discussion/rest_api/discussions_notifications.py index 8b0aea41e59..3035df5f866 100644 --- a/lms/djangoapps/discussion/rest_api/discussions_notifications.py +++ b/lms/djangoapps/discussion/rest_api/discussions_notifications.py @@ -68,7 +68,8 @@ def _send_notification(self, user_ids, notification_type, extra_context=None): "sender_id": self.creator.id, 'thread_id': self.thread.id, 'parent_id': self.parent_id, - 'comment_id': self.comment_id + 'comment_id': self.comment_id, + 'topic_id': self.thread.commentable_id, **extra_context, }, notification_type=notification_type,