mariano/snakefire — pull request #24 by madzak (2011-10-30 19:20:58+00:00)
Title: Added Inline Image Support

The hubot release from github has exposed that most clients support displaying an image inline if the message is only a url and is also an image. We had most of the work already plumbed into mainframe with display upload, so I just generalized that a bit and added in a new hook for if the full message is a url.

Basic Flow
If message is url try to fetch it
If fetched data is image inline it
otherwise display link like normal.

Also added some skeleton for unit tests for when we start to write tests.