[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:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user