mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Toolbar: replace pylons.Response usage with simple abort.
This commit is contained in:
@@ -30,7 +30,7 @@ from r2.lib.memoize import memoize
|
||||
from r2.lib.template_helpers import add_sr
|
||||
from r2.lib import utils
|
||||
from r2.lib.validator import *
|
||||
from pylons import c, Response
|
||||
from pylons import c
|
||||
from r2.models.admintools import is_shamed_domain
|
||||
|
||||
import string
|
||||
@@ -174,11 +174,8 @@ class ToolbarController(RedditController):
|
||||
|
||||
# we don't want clients to think that this URL is actually a
|
||||
# valid URL for search-indexing or the like
|
||||
c.response = Response()
|
||||
c.response.status_code = 404
|
||||
request.environ['usable_error_content'] = spaceCompress(res.render())
|
||||
|
||||
return c.response
|
||||
abort(404)
|
||||
|
||||
@validate(link = VLink('id'))
|
||||
def GET_comments(self, link):
|
||||
|
||||
Reference in New Issue
Block a user