From f73eaf273eae6d70642075b7706688caa63b3159 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 28 Mar 2011 17:17:28 +0200 Subject: [PATCH] Generate twitter links using postgr.es instead of bit.ly --- posttotwitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posttotwitter.py b/posttotwitter.py index 9e697b2..d273a79 100755 --- a/posttotwitter.py +++ b/posttotwitter.py @@ -60,7 +60,7 @@ class PostToTwitter(TwitterClient): # to twitter, and we store it separately in the database # in case it's needed. try: - short = self.shortlink(post[2]) + short = self.shortid(post[1]) except Exception, e: print "Failed to shorten URL %s: %s" % (post[2], e) continue -- 2.39.5