chore: added email_content in content reported notification (#36758)

* chore: added email_content in content reported notification

* fix: fixed test cases
This commit is contained in:
Muhammad Adeel Tajamul
2025-05-20 17:15:02 +05:00
committed by GitHub
parent 27c4ea44f2
commit bfdba3c914
2 changed files with 4 additions and 2 deletions

View File

@@ -373,7 +373,8 @@ class DiscussionNotificationSender:
context = {
'username': self.thread.username,
'content_type': content_type,
'content': thread_body
'content': thread_body,
'email_content': clean_thread_html_body(thread_body)
}
audience_filters = {'discussion_roles': [
FORUM_ROLE_ADMINISTRATOR, FORUM_ROLE_MODERATOR, FORUM_ROLE_COMMUNITY_TA

View File

@@ -47,7 +47,8 @@ class TestDiscussionNotificationSender(unittest.TestCase):
self.assertEqual(context, {
'username': self.thread.username,
'content_type': expected_content_type,
'content': 'Thread body'
'content': 'Thread body',
'email_content': 'Thread body',
})
self.assertEqual(audience_filters, {
'discussion_roles': ['Administrator', 'Moderator', 'Community TA']