Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix dead code references to controller "abort" method.

These are not the aborts you are looking for.
  • Loading branch information...
commit c9ad15aa540678c4ffc674cf8300315472c8fa5d 1 parent 959240a
@chromakode chromakode authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 r2/r2/controllers/api.py
  2. +1 −1  r2/r2/controllers/toolbar.py
View
6 r2/r2/controllers/api.py
@@ -1790,7 +1790,7 @@ def POST_delete_sr_img(self, form, jquery, name):
"""
# just in case we need to kill this feature from XSS
if g.css_killswitch:
- return self.abort(403,'forbidden')
+ return abort(403, 'forbidden')
if form.has_errors("img_name", errors.BAD_CSS_NAME):
return
@@ -1813,7 +1813,7 @@ def POST_delete_sr_header(self, form, jquery):
"""
# just in case we need to kill this feature from XSS
if g.css_killswitch:
- return self.abort(403,'forbidden')
+ return abort(403, 'forbidden')
if c.site.header:
c.site.header = None
c.site.header_size = None
@@ -2554,7 +2554,7 @@ def POST_unhide(self, thing):
parent = VByName('parent_id'))
def POST_moremessages(self, form, jquery, parent):
if not parent.can_view_slow():
- return self.abort(403,'forbidden')
+ return abort(403, 'forbidden')
if parent.sr_id:
builder = SrMessageBuilder(parent.subreddit_slow,
View
2  r2/r2/controllers/toolbar.py
@@ -197,7 +197,7 @@ def GET_comments(self, link):
links = list(wrap_links(link))
if not links:
# they aren't allowed to see this link
- return self.abort(403, 'forbidden')
+ return abort(403, 'forbidden')
link = links[0]
wrapper = make_wrapper(render_class = StarkComment,
Please sign in to comment.
Something went wrong with that request. Please try again.