Fix completely messed up copy/paste
authorMagnus Hagander <magnus@hagander.net>
Mon, 28 Mar 2011 17:57:46 +0000 (19:57 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 28 Mar 2011 17:57:46 +0000 (19:57 +0200)
posttotwitter.py

index d273a799e6e98e359b50df1ba8a737fb6622c3f6..5215aa3066785e44bdf2ac1a2b8004f30f510fc8 100755 (executable)
@@ -112,10 +112,10 @@ class PostToTwitter(TwitterClient):
 
 
        # Trim an URL using http://postgr.es
-       def shortid(self, url):
+       def shortid(self, id):
                s = ""
                while id > 0:
-                       s = _idvalmap[id % 64] + s
+                       s = _urlvalmap[id % 64] + s
                        id /= 64
                return "http://postgr.es/p/%s" % s