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:
committed by
GitHub
parent
27c4ea44f2
commit
bfdba3c914
@@ -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
|
||||
|
||||
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user