projects
/
hamn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f73eaf2
)
Fix completely messed up copy/paste
author
Magnus Hagander
<magnus@hagander.net>
Mon, 28 Mar 2011 17:57:46 +0000
(19:57 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Mon, 28 Mar 2011 17:57:46 +0000
(19:57 +0200)
posttotwitter.py
patch
|
blob
|
blame
|
history
diff --git
a/posttotwitter.py
b/posttotwitter.py
index d273a799e6e98e359b50df1ba8a737fb6622c3f6..5215aa3066785e44bdf2ac1a2b8004f30f510fc8 100755
(executable)
--- a/
posttotwitter.py
+++ b/
posttotwitter.py
@@
-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 = _
id
valmap[id % 64] + s
+ s = _
url
valmap[id % 64] + s
id /= 64
return "http://postgr.es/p/%s" % s