summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2021-07-29 10:44:38 +0200
committerAndré Glüpker <git@wgmd.de>2021-07-29 10:44:38 +0200
commitaf15eade0f59c17c4867baffe0e1dc05033b06c8 (patch)
treee8747d6236002c711b676da3adbe8879944097b9
parent10556bfe0f591b4bcf63128ce90f52a5f1ccd140 (diff)
downloadrss-feeds-af15eade0f59c17c4867baffe0e1dc05033b06c8.tar.gz
rss-feeds-af15eade0f59c17c4867baffe0e1dc05033b06c8.tar.bz2
rss-feeds-af15eade0f59c17c4867baffe0e1dc05033b06c8.zip
Add twitter quoted tweet
-rwxr-xr-xtwitter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/twitter.py b/twitter.py
index 87dfc68..40cd5ac 100755
--- a/twitter.py
+++ b/twitter.py
@@ -141,7 +141,9 @@ def parse_tweet(user, tweet, included_tweets, included_media):
title, description, ref_tweet.get("entities", {}).get("urls", [])
)
elif rt["type"] == "replied_to":
- description += f"<br/><br/>This was a reply to {rt['id']}"
+ description += "<br/>This was a reply to:<br/>" + rt["id"]
+ elif rt["type"] == "quoted":
+ description += '<br/>Quoted tweet:<br/>' + rt["text"]
else:
description += f"<br/><br/>Unknown reference type: {rt['type']}"