dewski/cached_bitly — pull request #2 by lorennorman (2013-06-04 19:22:57+00:00)
Title: Detect pre-shortened URLs gracefully

Pretty simple patch, gets around the ALREADY_A_BITLY_LINK error response and stores the given link as its own short/long link.

This is required because bit.ly gives out custom shortening domains and will return this error response on any of them, not just bit.ly. This makes it difficult/impossible to maintain a whitelist in advance.