'Remove the NSFW marking from a link.
See also: [/api/marknsfw](#POST_api_marknsfw).'

@require_oauth2_scope('modposts')
@noresponse(VUser(), VModhash(), VSrCanAlter('id'), thing=VByName('id'))
@api_doc(api_section.links_and_comments)
def POST_unmarknsfw(self, thing):

    if promote.is_promo(thing):
        if c.user_is_sponsor:
            thing.over_18_override = True
        else:
            abort(403, 'forbidden')
    thing.over_18 = False
    thing._commit()
    if (c.user._id != thing.author_id):
        ModAction.create(thing.subreddit_slow, c.user, target=thing, action='marknsfw', details='remove')
    thing.update_search_index()
