'Redirect to one of the posts stickied in the current subreddit
The "num" argument can be used to select a specific sticky, and will
default to 1 (the top sticky) if not specified.
Will 404 if there is not currently a sticky post in this subreddit.'

@require_oauth2_scope('read')
@api_doc(api_section.subreddits, uses_site=True)
@validate(num=VInt('num', min=1, max=Subreddit.MAX_STICKIES, num_default=1, coerce=True))
def GET_sticky(self, num):

    if ((not num) or (not c.site.sticky_fullnames)):
        abort(404)
    try:
        fullname = c.site.sticky_fullnames[(num - 1)]
    except IndexError:
        abort(404)
    sticky = Link._by_fullname(fullname, data=True)
    self.redirect(sticky.make_permalink_slow())
