Add back id alias to sponsored link listing container.

This fixes having two elements with the id "siteTable" on subreddit
pages containing a single sponsored link.

Thanks for the heads-up, /u/honestbleeps!
This commit is contained in:
Max Goodman
2013-03-08 02:52:08 -08:00
parent 3574a64992
commit ba72f6aec8

View File

@@ -239,6 +239,7 @@ class HotController(FixListing, ListingController):
res = wrap_links([link._fullname], wrapper=self.builder_wrapper,
skip=False)
res.parent_name = "promoted"
if res.things:
return res
@@ -247,6 +248,7 @@ class HotController(FixListing, ListingController):
b = CampaignBuilder(promo_tuples, wrap=self.builder_wrapper,
keep_fn=organic.keep_fresh_links, num=1, skip=True)
res = LinkListing(b, nextprev=False).listing()
res.parent_name = "promoted"
if res.things:
return res