'For unmuting user via modmail.'

@require_oauth2_scope('modcontributors')
@noresponse(VUser(), VModhash(), message=VByName('id'))
@api_doc(api_section.moderation)
def POST_unmute_message_author(self, message):

    if (not message):
        return
    subreddit = message.subreddit_slow
    if (not subreddit):
        abort(403, 'Not    modmail')
    user = message.author_slow
    if (not c.user_is_admin):
        if (not subreddit.is_moderator_with_perms(c.user, 'access', 'mail')):
            abort(403, 'Invalid    mod    permissions')
    VNotInTimeout().run(action_name='unmuteuser', details_text='modmail', target=user, subreddit=subreddit)
    removed = subreddit.remove_muted(user)
    if removed:
        MutedAccountsBySubreddit.unmute(subreddit, user)
        ModAction.create(subreddit, c.user, 'unmuteuser', target=user)
