Prevent duplicate DOM IDs for promoted link panel on subreddit link listing

This commit is contained in:
Andre D
2012-02-03 12:15:07 -06:00
committed by Logan Hanks
parent a61fbb2e4d
commit eef447871a

View File

@@ -290,6 +290,7 @@ class HotController(FixListing, ListingController):
res = wrap_links(link_ids, wrapper = self.builder_wrapper,
num = 1, keep_fn = lambda x: x.fresh,
skip = True)
res.parent_name = "promoted"
if res.things:
return res