fix: update stale Followers/Following queryIds and retry on 422

Twitter now returns HTTP 422 GRAPHQL_VALIDATION_FAILED (not just 404)
when a queryId goes stale. Updated fallback IDs and added 422 to the
stale-queryId retry logic in both _graphql_get and _graphql_post.
This commit is contained in:
jackwener
2026-03-11 00:45:13 +08:00
parent 5c1015f1fd
commit 1f267008ad
2 changed files with 7 additions and 7 deletions

View File

@@ -33,8 +33,8 @@ FALLBACK_QUERY_IDS = {
"SearchTimeline": "MJpyQGqgklrVl_0X9gNy3A",
"Bookmarks": "uzboyXSHSJrR-mGJqep0TQ",
"ListLatestTweetsTimeline": "ZBbXrl0FVnTqp7K6EAADog",
"Followers": "t-BPOrMIduGUJWO_LxcvNQ",
"Following": "iSicc7LrzWGBgDPL0tM_TQ",
"Followers": "IOh4aS6UdGWGJUYTqliQ7Q",
"Following": "zx6e-TLzRkeDO_a7p4b3JQ",
"CreateTweet": "bDE2rBtZb3uyrczSZ_pI9g",
"DeleteTweet": "VaenaVgh5q5ih7kvyVjgtg",
"FavoriteTweet": "lI07N6Otwv1PhnEgXILM7A",