diff --git a/r2/r2/controllers/api.py b/r2/r2/controllers/api.py index fa2b31f56..cbdedae3f 100755 --- a/r2/r2/controllers/api.py +++ b/r2/r2/controllers/api.py @@ -1630,6 +1630,10 @@ class ApiController(RedditController, OAuth2ResourceController): jquery('#preview_link_compressed').html( cssfilter.rendered_link(links, media = 'off', compress=True)) + # do a stickied link + jquery('#preview_link_stickied').html( + cssfilter.rendered_link(links, media='off', + compress=False, stickied=True)) # and do a comment comments = cssfilter.find_preview_comments(c.site) diff --git a/r2/r2/templates/subredditstylesheet.html b/r2/r2/templates/subredditstylesheet.html index 3a12baeb2..f4561717c 100644 --- a/r2/r2/templates/subredditstylesheet.html +++ b/r2/r2/templates/subredditstylesheet.html @@ -117,6 +117,10 @@