[twitter] fix 'quote_id' of individual Tweets (#8284)

Fix 'quoted_by_id_str' to use parent tweet id
This commit is contained in:
24xyz
2025-09-24 12:50:12 -05:00
committed by GitHub
parent 616e3f2dce
commit 92be341711

View File

@@ -1026,11 +1026,12 @@ class TwitterTweetExtractor(TwitterExtractor):
return
while True:
parent_id = tweet["rest_id"]
tweet_id = tweet["legacy"].get("quoted_status_id_str")
if not tweet_id:
break
tweet = self.api.tweet_result_by_rest_id(tweet_id)
tweet["legacy"]["quoted_by_id_str"] = tweet_id
tweet["legacy"]["quoted_by_id_str"] = parent_id
yield tweet
def _tweets_detail(self, tweet_id):