Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Playing with padding for fedmsg-tweet.

  • Loading branch information...
commit d64e86c710dc24d6f7b4834ab8fc4cd640f4c55d 1 parent fbe5ca5
@ralphbean authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  fedmsg/commands/tweet.py
View
2  fedmsg/commands/tweet.py
@@ -98,7 +98,7 @@ def _post_to_api(api, message):
if link:
link = bitly.shorten(longUrl=link)['url']
- message = (message[:138] + " ")[:139 - len(link)] + link
+ message = message[:138 - len(link)] + " " + link
else:
message = message[:140]
Please sign in to comment.
Something went wrong with that request. Please try again.