Remove extra space in tweets
authorMagnus Hagander <magnus@hagander.net>
Sat, 9 Dec 2017 15:49:53 +0000 (16:49 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 9 Dec 2017 15:49:53 +0000 (16:49 +0100)
pgweb/news/management/commands/twitter_post.py

index 32ffb38523d0734f44347f33d83b8b527f9cf6ec..d6d35d617662c4693a4c60da5e85cd609ce3b0ab 100644 (file)
@@ -35,7 +35,7 @@ class Command(BaseCommand):
 
                for a in articles:
                        # We hardcode 30 chars for the URL shortener. And then 10 to cover the intro and spacing.
-                       statusstr = u"News: {0} {1}/about/news/{2}/".format(a.title[:140-40], settings.SITE_ROOT, a.id)
+                       statusstr = u"News: {0} {1}/about/news/{2}/".format(a.title[:140-40], settings.SITE_ROOT, a.id)
                        r = tw.post('https://api.twitter.com/1.1/statuses/update.json', data={
                                'status': statusstr,
                        })