mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
/dev/api: Fix erroneous GET_listing.
This isn't actually a routed endpoint but an artifact of code reuse.
This commit is contained in:
committed by
Max Goodman
parent
0463da9c80
commit
3939e7c62d
@@ -187,12 +187,16 @@ class ListingController(RedditController, OAuth2ResourceController):
|
||||
|
||||
@require_oauth2_scope("read")
|
||||
@base_listing
|
||||
@api_doc(api_section.listings, extensions=['json', 'xml'])
|
||||
def GET_listing(self, **env):
|
||||
check_cheating('site')
|
||||
return self.build_listing(**env)
|
||||
|
||||
listing_api_doc = partial(api_doc, section=api_section.listings, extends=ListingController.GET_listing)
|
||||
listing_api_doc = partial(
|
||||
api_doc,
|
||||
section=api_section.listings,
|
||||
extends=ListingController.GET_listing,
|
||||
extensions=["json", "xml"],
|
||||
)
|
||||
|
||||
class FixListing(object):
|
||||
"""When sorting by hotness, computing a listing when the before/after
|
||||
|
||||
Reference in New Issue
Block a user