From 692b3ac4b2bd9ba2fd3bd01ff2b1b70c6ed4e98f Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:12:55 +0500 Subject: [PATCH] fix: removed enable_discussion_mfe from email content (#34061) --- lms/djangoapps/discussion/toggles_utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lms/djangoapps/discussion/toggles_utils.py b/lms/djangoapps/discussion/toggles_utils.py index 10ba260d81..56d2b3aacd 100644 --- a/lms/djangoapps/discussion/toggles_utils.py +++ b/lms/djangoapps/discussion/toggles_utils.py @@ -1,7 +1,6 @@ """ Utils for Discussions feature toggles """ -from lms.djangoapps.discussion.toggles import ENABLE_DISCUSSIONS_MFE from openedx.core.djangoapps.django_comment_common.models import CourseDiscussionSettings @@ -10,5 +9,4 @@ def reported_content_email_notification_enabled(course_key): Checks for relevant flag and setting and returns boolean for reported content email notification for course """ - return bool(ENABLE_DISCUSSIONS_MFE.is_enabled(course_key) and - CourseDiscussionSettings.get(course_key).reported_content_email_notifications) + return CourseDiscussionSettings.get(course_key).reported_content_email_notifications