adium 2457:70ed22781021: Add a new constant, 'AINumberOfShortenL...
commits at adium.im
commits at adium.im
Wed Jun 3 06:18:32 UTC 2009
details: http://hg.adium.im/adium/rev/70ed22781021
revision: 2457:70ed22781021
author: Peter Hosey <hg at boredzo.org>
date: Tue Jun 02 23:04:09 2009 -0700
Add a new constant, 'AINumberOfShortenLinkServices', so that we can add new services above it without polluting blame output by adding a comma to the last existing service.
Subject: adium 2458:7832c2b3c28d: Added kl.am to the list of available URL shorteners, as requested by Jon Henshaw of Sitening (the company that runs kl.am).
details: http://hg.adium.im/adium/rev/7832c2b3c28d
revision: 2458:7832c2b3c28d
author: Peter Hosey <hg at boredzo.org>
date: Tue Jun 02 23:17:13 2009 -0700
Added kl.am to the list of available URL shorteners, as requested by Jon Henshaw of Sitening (the company that runs kl.am).
diffs (36 lines):
diff -r aa9e171af640 -r 7832c2b3c28d Source/AIURLShortenerPlugin.h
--- a/Source/AIURLShortenerPlugin.h Tue Jun 02 22:48:24 2009 -0700
+++ b/Source/AIURLShortenerPlugin.h Tue Jun 02 23:17:13 2009 -0700
@@ -21,7 +21,9 @@
AITinyURL = 0,
AIisgd,
AIMetamark,
- AITrim
+ AITrim,
+ AIKlam,
+ AINumberOfShortenLinkServices
} AIShortenLinkService;
@interface AIURLShortenerPlugin : AIPlugin {
diff -r aa9e171af640 -r 7832c2b3c28d Source/AIURLShortenerPlugin.m
--- a/Source/AIURLShortenerPlugin.m Tue Jun 02 22:48:24 2009 -0700
+++ b/Source/AIURLShortenerPlugin.m Tue Jun 02 23:17:13 2009 -0700
@@ -105,6 +105,7 @@
[NSNumber numberWithInteger:AIisgd], @"is.gd",
[NSNumber numberWithInteger:AIMetamark], @"xrl.us",
[NSNumber numberWithInteger:AITrim], @"tr.im",
+ [NSNumber numberWithInteger:AIKlam], @"kl.am",
nil];
[menu removeAllItems];
@@ -249,6 +250,10 @@
request = [NSString stringWithFormat:@"http://api.tr.im/api/trim_simple?api_key=zghQN6sv5y0FkLPNlQAopm7qDQz6ItO33ENU21OBsy3dL1Kl&url=%@", [address stringByAddingPercentEscapesForAllCharacters]];
break;
+ case AIKlam:
+ request = [NSString stringWithFormat:@"http://kl.am/api/shorten?url=%@&format=text", [address stringByAddingPercentEscapesForAllCharacters]];
+ break;
+
default:
break;
More information about the commits
mailing list