summaryrefslogtreecommitdiff
path: root/twitter.py
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2021-07-30 12:51:56 +0200
committerAndré Glüpker <git@wgmd.de>2021-07-30 12:51:56 +0200
commit4641d83fcbffead62e8b41c4452f3abc5358c81e (patch)
treefb0d75ce57b92c93bcae7df0ac5c40b064fefcb6 /twitter.py
parentb526cc68929250a7f71ff21ed8410ffd8db87a9d (diff)
downloadrss-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-xtwitter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/twitter.py b/twitter.py
index b7088cd..51dd51f 100755
--- a/twitter.py
+++ b/twitter.py
@@ -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']}"