Twishort retweets are displayed as espected

This commit is contained in:
Manuel Cortez 2015-09-17 09:00:30 -05:00
parent 3623eafacd
commit a3c050195a

View File

@ -60,6 +60,8 @@ def compose_tweet(tweet, db, relative_times):
try: try:
oldtext=text oldtext=text
text=twishort.get_full_text(tweet['long_uri']) text=twishort.get_full_text(tweet['long_uri'])
try: text = "rt @%s: %s" % (tweet["retweeted_status"]["user"]["screen_name"], StripChars(text))
except KeyError: pass
except: except:
text=oldtext text=oldtext
tweet["text"] = text tweet["text"] = text