From 3a7c0c8f121bd61d7be91af03437996304dccb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sun, 2 Oct 2016 07:54:23 -0500 Subject: [PATCH] Added a fix for composing tweets in the new way twitter provides them --- src/twitter/compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twitter/compose.py b/src/twitter/compose.py index 21950446..53f94a1d 100644 --- a/src/twitter/compose.py +++ b/src/twitter/compose.py @@ -56,7 +56,7 @@ def compose_tweet(tweet, db, relative_times): text = "%s" % (StripChars(tweet[value])) else: text = "RT @%s: %s" % (tweet["retweeted_status"]["user"]["screen_name"], StripChars(tweet[value])) - if text[-1] in chars: text=text+"." +# if text[-1] in chars: text=text+"." if tweet.has_key("message") == False: urls = utils.find_urls_in_text(text) for url in range(0, len(urls)):