Open GoogleCodeExporter opened 9 years ago
Attached is a patch for the UrlShorteningService.cs file to add support for
tr.im.
Couple notes here:
+ due to logic elsewhere in Witty, the url shortening configured via Witty will
only
be applied on messages greater than 140 characters
+ Twitter shortens _ANY_ huge urls now by default with bit.ly. So if you have
a huge
url but the tweet is less than 140 characters twitter will automagically shrink
it
for you.
+ A request for the option to automatically shorten large urls regardless of
tweet
character size will be submitted as an enhancement.
+ I found a bug with how Twitter parses the urls when it is shortening them.
Test
case is go to the Twitter.com web page and enter
"http://code.google.com/p/wittytwitter/source/browse/#svn/trunk/ExternalDependen
cies"
(without the quotes) and the resulting shortened url is the invalid
"http://bit.ly/QSvgn /trunk/ExternalDependencies" (again w/o the quotes). This
url
is shortened correctly directly against bit.ly. Not really important here but
FYI.
Original comment by klmcma...@gmail.com
on 22 May 2009 at 2:18
Attachments:
Applied patch
Thanks for the additional info. Do you know what the cutoff is where Twitter
compacts
URL's even if the message is under 140 characters?
Original comment by jongallo...@gmail.com
on 25 May 2009 at 7:02
Original issue reported on code.google.com by
gracewood.ben
on 14 Jan 2009 at 9:50