Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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!
  • Loading branch information...
commit ba72f6aec8836906416fc79e6402433bd2388ca1 1 parent 3574a64
Max Goodman authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  r2/r2/controllers/listingcontroller.py
View
2  r2/r2/controllers/listingcontroller.py
@@ -239,6 +239,7 @@ def make_requested_ad(self):
res = wrap_links([link._fullname], wrapper=self.builder_wrapper,
skip=False)
+ res.parent_name = "promoted"
if res.things:
return res
@@ -247,6 +248,7 @@ def make_single_ad(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.