Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a9009981
Commit
a9009981
authored
Sep 12, 2012
by
Arjun Singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix anonymity leak; fix editing when rendering from main page.
parent
3bc9c749
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
lms/djangoapps/django_comment_client/forum/views.py
+2
-0
lms/djangoapps/django_comment_client/utils.py
+1
-1
No files found.
lms/djangoapps/django_comment_client/forum/views.py
View file @
a9009981
...
@@ -282,6 +282,8 @@ def single_thread(request, course_id, discussion_id, thread_id):
...
@@ -282,6 +282,8 @@ def single_thread(request, course_id, discussion_id, thread_id):
thread
[
'courseware_location'
]
=
courseware_context
[
'courseware_location'
]
thread
[
'courseware_location'
]
=
courseware_context
[
'courseware_location'
]
thread
[
'courseware_title'
]
=
courseware_context
[
'courseware_title'
]
thread
[
'courseware_title'
]
=
courseware_context
[
'courseware_title'
]
threads
=
[
utils
.
safe_content
(
thread
)
for
thread
in
threads
]
#recent_active_threads = cc.search_recent_active_threads(
#recent_active_threads = cc.search_recent_active_threads(
# course_id,
# course_id,
# recursive=False,
# recursive=False,
...
...
lms/djangoapps/django_comment_client/utils.py
View file @
a9009981
...
@@ -273,7 +273,7 @@ def safe_content(content):
...
@@ -273,7 +273,7 @@ def safe_content(content):
'created_at'
,
'updated_at'
,
'depth'
,
'type'
,
'created_at'
,
'updated_at'
,
'depth'
,
'type'
,
'commentable_id'
,
'comments_count'
,
'at_position_list'
,
'commentable_id'
,
'comments_count'
,
'at_position_list'
,
'children'
,
'highlighted_title'
,
'highlighted_body'
,
'children'
,
'highlighted_title'
,
'highlighted_body'
,
'courseware_title'
,
'courseware_location'
'courseware_title'
,
'courseware_location'
,
'tags'
]
]
if
content
.
get
(
'anonymous'
)
is
False
:
if
content
.
get
(
'anonymous'
)
is
False
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment