mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-13 08:48:26 +00:00
Merge 0c3fed81c9
into c346d2b027
This commit is contained in:
commit
01ebfe702d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user