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
67f57a71
Commit
67f57a71
authored
Apr 23, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new API verbs
parent
acfd0d9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lms/lib/comment_client/comment.py
+2
-2
lms/lib/comment_client/thread.py
+2
-2
No files found.
lms/lib/comment_client/comment.py
View file @
67f57a71
...
...
@@ -78,8 +78,8 @@ def _url_for_comment(comment_id):
def
_url_for_flag_abuse_comment
(
comment_id
):
return
"{prefix}/comments/{comment_id}/abuse_flag
s
"
.
format
(
prefix
=
settings
.
PREFIX
,
comment_id
=
comment_id
)
return
"{prefix}/comments/{comment_id}/abuse_flag"
.
format
(
prefix
=
settings
.
PREFIX
,
comment_id
=
comment_id
)
def
_url_for_unflag_abuse_comment
(
comment_id
):
return
"{prefix}/comments/{comment_id}/abuse_unflag
s
"
.
format
(
prefix
=
settings
.
PREFIX
,
comment_id
=
comment_id
)
return
"{prefix}/comments/{comment_id}/abuse_unflag"
.
format
(
prefix
=
settings
.
PREFIX
,
comment_id
=
comment_id
)
lms/lib/comment_client/thread.py
View file @
67f57a71
...
...
@@ -121,11 +121,11 @@ class Thread(models.Model):
def
_url_for_flag_abuse_thread
(
thread_id
):
return
"{prefix}/threads/{thread_id}/abuse_flag
s
"
.
format
(
prefix
=
settings
.
PREFIX
,
thread_id
=
thread_id
)
return
"{prefix}/threads/{thread_id}/abuse_flag"
.
format
(
prefix
=
settings
.
PREFIX
,
thread_id
=
thread_id
)
def
_url_for_unflag_abuse_thread
(
thread_id
):
return
"{prefix}/threads/{thread_id}/abuse_unflag
s
"
.
format
(
prefix
=
settings
.
PREFIX
,
thread_id
=
thread_id
)
return
"{prefix}/threads/{thread_id}/abuse_unflag"
.
format
(
prefix
=
settings
.
PREFIX
,
thread_id
=
thread_id
)
def
_url_for_pin_thread
(
thread_id
):
...
...
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