[twitter] fix all quoted Tweets being marked as 'deleted' (#8225)

due to "KeyError: 'screen_name'"
when trying to access the author's name

fixes regression introduced in 5747dbf00c
This commit is contained in:
Mike Fährmann
2025-09-16 10:04:18 +02:00
parent 9ea0071bdf
commit 5aa2124736

View File

@@ -2070,7 +2070,7 @@ class TwitterAPI():
quoted = tweet["quoted_status_result"]["result"]
quoted["legacy"]["quoted_by"] = (
tweet["core"]["user_results"]["result"]
["legacy"]["screen_name"])
["core"]["screen_name"])
quoted["legacy"]["quoted_by_id_str"] = tweet["rest_id"]
quoted["sortIndex"] = entry.get("sortIndex")