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:
Max Goodman
2013-04-07 22:54:50 -07:00
parent 31a1e14350
commit c639218105

View File

@@ -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))):