Commit 1ce71942 by Jonathan Piacenti

discussion-integration: Fixed call to prepare_content in x_module.

parent 0ec2e643
...@@ -1599,7 +1599,7 @@ class DiscussionService(object): ...@@ -1599,7 +1599,7 @@ class DiscussionService(object):
user_cohort_id = get_cohort_id(user, course_id) user_cohort_id = get_cohort_id(user, course_id)
unsafethreads, query_params = get_threads(request, course_id) unsafethreads, query_params = get_threads(request, course_id)
threads = [utils.prepare_content(thread) for thread in unsafethreads] threads = [utils.prepare_content(thread, course_id) for thread in unsafethreads]
flag_moderator = has_permission(user, 'openclose_thread', course_id) or \ flag_moderator = has_permission(user, 'openclose_thread', course_id) or \
has_access(user, 'staff', course) has_access(user, 'staff', course)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment