From 0c6e760b727d595bdcf1c112be94f20b9a55fdc2 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 13 Aug 2023 14:16:03 +0100 Subject: [PATCH] Fix misc embed issues with QRTs --- twitfix.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/twitfix.py b/twitfix.py index 49c2eb2..7506b60 100644 --- a/twitfix.py +++ b/twitfix.py @@ -487,6 +487,8 @@ def link_to_vnf_from_tweet_data(tweet,video_link): qrtURL = None if 'quoted_status_permalink' in tweet: qrtURL = tweet['quoted_status_permalink']['expanded'] + elif 'quoted_status_id_str' in tweet: + qrtURL = "https://twitter.com/i/status/" + tweet['quoted_status_id_str'] text = tweet['full_text']