This commit is contained in:
Juan Cuzmar 2025-03-10 08:01:57 -05:00 committed by GitHub
commit 01ebfe702d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,6 +115,11 @@ export default async function({ id, index, toGif, dispatcher, alwaysProxy }) {
tweet = await requestTweet(dispatcher, id, guestToken)
}
// if the tweet reached the rate limit, we need to retry with the cookie
if ([404].includes(tweet.status)) {
tweet = await requestTweet(dispatcher, id, guestToken, cookie);
}
tweet = await tweet.json();
let tweetTypename = tweet?.data?.tweetResult?.result?.__typename;