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
57427f9a
Commit
57427f9a
authored
Apr 24, 2013
by
Kevin Chugh
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1883 from MITx/feature/kevin/flagging_refactor_verbs
use new API verbs
parents
37621c26
67f57a71
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 @
57427f9a
...
@@ -78,8 +78,8 @@ def _url_for_comment(comment_id):
...
@@ -78,8 +78,8 @@ def _url_for_comment(comment_id):
def
_url_for_flag_abuse_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
):
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 @
57427f9a
...
@@ -121,11 +121,11 @@ class Thread(models.Model):
...
@@ -121,11 +121,11 @@ class Thread(models.Model):
def
_url_for_flag_abuse_thread
(
thread_id
):
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
):
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
):
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