diff options
author | André Glüpker <git@wgmd.de> | 2021-07-29 10:44:38 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2021-07-29 10:44:38 +0200 |
commit | af15eade0f59c17c4867baffe0e1dc05033b06c8 (patch) | |
tree | e8747d6236002c711b676da3adbe8879944097b9 /twitter.py | |
parent | 10556bfe0f591b4bcf63128ce90f52a5f1ccd140 (diff) | |
download | rss-feeds-af15eade0f59c17c4867baffe0e1dc05033b06c8.tar.gz rss-feeds-af15eade0f59c17c4867baffe0e1dc05033b06c8.tar.bz2 rss-feeds-af15eade0f59c17c4867baffe0e1dc05033b06c8.zip |
Add twitter quoted tweet
Diffstat (limited to 'twitter.py')
-rwxr-xr-x | twitter.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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']}" |