mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
Prevent duplicate DOM IDs for promoted link panel on subreddit link listing
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user