From eef447871acce62d491cf7d431676372e6343522 Mon Sep 17 00:00:00 2001 From: Andre D Date: Fri, 3 Feb 2012 12:15:07 -0600 Subject: [PATCH] Prevent duplicate DOM IDs for promoted link panel on subreddit link listing --- r2/r2/controllers/listingcontroller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/r2/r2/controllers/listingcontroller.py b/r2/r2/controllers/listingcontroller.py index e144e54b9..350bdcaee 100644 --- a/r2/r2/controllers/listingcontroller.py +++ b/r2/r2/controllers/listingcontroller.py @@ -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