mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Switch back to only returning listing in bare request.
Including the extra behavior in content() means depending on the listing type we get different DOM structure, which makes replacing the content on the client side difficult. We probably don't want to change ad out with every multi update anyway.
This commit is contained in:
@@ -109,13 +109,12 @@ class ListingController(RedditController, OAuth2ResourceController):
|
||||
self.query_obj = self.query()
|
||||
self.builder_obj = self.builder()
|
||||
self.listing_obj = self.listing()
|
||||
content = self.content()
|
||||
|
||||
if self.bare:
|
||||
return responsive(content.render())
|
||||
return responsive(self.listing_obj.render())
|
||||
|
||||
content = self.content()
|
||||
page_classes = self.extra_page_classes
|
||||
|
||||
if (self.show_chooser and
|
||||
c.user_is_loggedin and c.user.pref_show_left_bar and
|
||||
isinstance(c.site, (DefaultSR, AllSR, LabeledMulti))):
|
||||
|
||||
Reference in New Issue
Block a user