Fix anonymity leak; fix editing when rendering from main page.

This commit is contained in:
Arjun Singh
2012-09-12 04:32:32 -07:00
parent 3bc9c7496c
commit a900998145
2 changed files with 3 additions and 1 deletions

View File

@@ -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,

View File

@@ -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: