Fix anonymity leak; fix editing when rendering from main page.
This commit is contained in:
@@ -282,6 +282,8 @@ def single_thread(request, course_id, discussion_id, thread_id):
|
||||
thread['courseware_location'] = courseware_context['courseware_location']
|
||||
thread['courseware_title'] = courseware_context['courseware_title']
|
||||
|
||||
threads = [utils.safe_content(thread) for thread in threads]
|
||||
|
||||
#recent_active_threads = cc.search_recent_active_threads(
|
||||
# course_id,
|
||||
# recursive=False,
|
||||
|
||||
@@ -273,7 +273,7 @@ def safe_content(content):
|
||||
'created_at', 'updated_at', 'depth', 'type',
|
||||
'commentable_id', 'comments_count', 'at_position_list',
|
||||
'children', 'highlighted_title', 'highlighted_body',
|
||||
'courseware_title', 'courseware_location'
|
||||
'courseware_title', 'courseware_location', 'tags'
|
||||
]
|
||||
|
||||
if content.get('anonymous') is False:
|
||||
|
||||
Reference in New Issue
Block a user