diff options
author | André Glüpker <git@wgmd.de> | 2021-07-30 12:51:56 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2021-07-30 12:51:56 +0200 |
commit | 4641d83fcbffead62e8b41c4452f3abc5358c81e (patch) | |
tree | fb0d75ce57b92c93bcae7df0ac5c40b064fefcb6 /twitter.py | |
parent | b526cc68929250a7f71ff21ed8410ffd8db87a9d (diff) | |
download | rss-feeds-4641d83fcbffead62e8b41c4452f3abc5358c81e.tar.gz rss-feeds-4641d83fcbffead62e8b41c4452f3abc5358c81e.tar.bz2 rss-feeds-4641d83fcbffead62e8b41c4452f3abc5358c81e.zip |
Fix twitter issue, when rt['text'] isn't available
(Just display id for now, that is always available)
Diffstat (limited to 'twitter.py')
-rwxr-xr-x | twitter.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -106,9 +106,9 @@ def parse_tweet(user, tweet, included_tweets, included_media): title, description, ref_tweet.get("entities", {}).get("urls", []) ) elif rt["type"] == "replied_to": - description += "<br/>This was a reply to:<br/>" + rt["id"] + description += "<br/>This was a reply to: " + rt["id"] elif rt["type"] == "quoted": - description += "<br/>Quoted tweet:<br/>" + rt["text"] + description += "<br/>Quoted tweet: " + rt["id"] else: description += f"<br/><br/>Unknown reference type: {rt['type']}" |