def do_get_user_info(author, appkey):
    """
    Get a struct with user info
    """
    return {'userid': author.id, 'firstname': getattr(author.user,
        'first_name', ''), 'lastname': getattr(author.user, 'last_name', ''
        ), 'nickname': author.user.username, 'email': author.user.email,
        'url': author.get_absolute_url()}
