def get_quoted_user_id(status):
    """
    Retrieve the user id of the original tweet
    :param status: Tweet object
    :return: user id or None
    """
    try:
        return status.quoted_status.user.id if status.is_quote_status else None
    except AttributeError:
        return None
