def preprocess_text(status):
    """
    convert extended tweets text and full text tweets
    to something our template can handle
    """
    if hasattr(status, "full_text"):
        status.text = status.full_text
    if hasattr(status, "extended_tweet"):
        status.text = status.extended_tweet["full_text"]
    if hasattr(status, "quoted_status"):
        if hasattr(status.quoted_status, "full_text"):
            status.quoted_status.text = status.quoted_status.full_text
    if hasattr(status, "retweeted_status"):
        if hasattr(status.retweeted_status, "full_text"):
            status.retweeted_status.text = status.retweeted_status.full_text
    return status