Skip to content

Commit

Permalink
fix: quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 committed Feb 28, 2024
1 parent d490965 commit 4e1fcd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lms/djangoapps/discussion/rest_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,8 +1354,9 @@ def _handle_abuse_flagged_field(form_value, user, cc_content, request):
if form_value:
cc_content.flagAbuse(user, cc_content)
track_discussion_reported_event(request, course, cc_content)
if ENABLE_DISCUSSIONS_MFE.is_enabled(course_key) and use_discussions_mfe(course.org) and reported_content_email_notification_enabled(
course_key):
if ENABLE_DISCUSSIONS_MFE.is_enabled(course_key) and use_discussions_mfe(
course.org) and reported_content_email_notification_enabled(
course_key):
if cc_content.type == 'thread':
thread_flagged.send(sender='flag_abuse_for_thread', user=user, post=cc_content)
else:
Expand Down
4 changes: 2 additions & 2 deletions openedx/core/djangoapps/discussions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ def use_discussions_mfe(org) -> bool:
True if the MFE setting is activated, by default
the MFE is deactivated
"""
use_discussions_mfe = configuration_helpers.get_value_for_org(
use_discussions = configuration_helpers.get_value_for_org(
org, "USE_DISCUSSIONS_MFE_FRONTEND", False
)

return bool(use_discussions_mfe)
return bool(use_discussions)

0 comments on commit 4e1fcd7

Please sign in to comment.