EllisLab/Twitter-Timeline — pull request #2 by kellypacker (2011-10-25 14:39:21+00:00)
Title: Media

Hello,
I was getting 2 php errors:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: media
Filename: twitter_timeline/pi.twitter_timeline.php
Line Number: 174

and

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /example/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 409

Twitter added another entity - a 'media' entity - for images (and maybe videos). I updated this plugin to account for this new entity. I added a media option to the create_links parameter. It creates a url of the media entityexactly like the url entity.

I have tested on local with a bunch of different usernames. I only get the error if the tweet contains a media entity.