mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-14 01:08:27 +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)
|
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();
|
tweet = await tweet.json();
|
||||||
|
|
||||||
let tweetTypename = tweet?.data?.tweetResult?.result?.__typename;
|
let tweetTypename = tweet?.data?.tweetResult?.result?.__typename;
|
||||||
|
Loading…
Reference in New Issue
Block a user