Found a case where quoted tweets might get missed pulling into twitter cache from backup

This commit is contained in:
Jocelyn Badgley (Twipped) 2021-08-25 10:58:14 -07:00
parent b663b99393
commit 5322027e65

View File

@ -54,6 +54,10 @@ module.exports = exports = async function tweets (pages) {
}
const tweet = twitterBackup[id];
if (tweet.quoted_status_id_str && !twitterCache[tweet.quoted_status_id_str]) {
tweetsNeeded.push(tweet.quoted_status_id_str);
}
if (tweet) {
log('Pulled tweet from backup ' + id);
twitterCache[id] = tweetparse(twitterBackup[id]);