Skip to content

Commit

Permalink
Merge pull request #915 from shy1132/master
Browse files Browse the repository at this point in the history
maybe fix some profile's tweets not loading
  • Loading branch information
dimdenGD authored Aug 26, 2024
2 parents 2966bbe + 0e47969 commit e0baa1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ const API = {
if (data.errors && data.errors[0].code === 32) {
return reject("Not logged in");
}
if (data.errors && data.errors[0]) {
if (data.errors && data.errors[0] && !data.data?.user?.result?.timeline_v2?.timeline?.instructions) {
if(data.errors[0].code === 88 && typeof useDiffKey === 'undefined') {
localStorage.hitRateLimit = Date.now() + 1000 * 60 * 10;
return API.user.getTweetsV2(id, cursor, replies, true).then(resolve).catch(reject);
Expand Down

0 comments on commit e0baa1e

Please sign in to comment.