display extended retweets properly. Fixes #173

This commit is contained in:
Manuel Cortez 2017-11-07 16:57:46 -06:00
parent ef2d672b35
commit 3a465f2314
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@
* In the translator module, the list of available languages is fetched automatically from the provider. That means all of these languages will work and there will not be inconsistencies. Also we've removed the first combo box, because the language is detected automatically by Yandex'S API. ([#153](https://github.com/manuelcortez/TWBlue/issues/153))
* Trending topics, searches and conversation buffers will use mute settings set for the session in wich they were opened. ([#157](https://github.com/manuelcortez/TWBlue/issues/157))
* The Tweet limit is now 280 characters lenght instead 140. It means you can tweet longer tweets. ([#172](https://github.com/manuelcortez/TWBlue/issues/172))
* And more. ([#156,](https://github.com/manuelcortez/TWBlue/issues/156) [#163,](https://github.com/manuelcortez/TWBlue/issues/163) [#159,](https://github.com/manuelcortez/TWBlue/issues/159))
* And more. ([#156,](https://github.com/manuelcortez/TWBlue/issues/156) [#163,](https://github.com/manuelcortez/TWBlue/issues/163) [#159,](https://github.com/manuelcortez/TWBlue/issues/159) [#173,](https://github.com/manuelcortez/TWBlue/issues/173))
## changes in version 0.91 and 0.92

View File

@ -44,8 +44,10 @@ def compose_tweet(tweet, db, relative_times, show_screen_names=False):
value = "full_text"
else:
value = "text"
# log.exception(tweet.keys())
text = StripChars(tweet[value])
if tweet.has_key("retweeted_status") and value == "full_text":
text = StripChars(tweet["retweeted_status"][value])
else:
text = StripChars(tweet[value])
if show_screen_names:
user = tweet["user"]["screen_name"]
else: