Fixed hilarious Twitter fail
Fixed hilarious Twitter fail

This is my new favourite Twitter failure.

SuccessWhale's default behaviour when shortening links through Twixt is to post the first 116 chars of the tweet, followed by "... " then the is.gd shortened URL for the Twixt page, which makes exactly 140 characters.

Twitter started breaking this in an epic way, because it passes all URLs - even pre-shortened ones - through its own t.co shortener. Unfortunately so many URLs have been shortened with t.co that the t.co URL is now actually *longer* than the is.gd one.

Thus the 116 characters + "... " + t.co URL becomes *longer* than 140 characters, causing Twitter to reject the Tweet.

The 116 characters has been reduced to 110. Assuming Twitter keeps shortening URLs at the same rate, this should fix this bug for approximately the next 308 million years.
ianrenton/SuccessWhale,ianrenton/SuccessWhale