From 5322027e65ee9f1b28192b5a997ed2e292e3c1a3 Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Wed, 25 Aug 2021 10:58:14 -0700 Subject: [PATCH] Found a case where quoted tweets might get missed pulling into twitter cache from backup --- build/page-tweets.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/page-tweets.js b/build/page-tweets.js index 15b2b93..cd2c2fc 100644 --- a/build/page-tweets.js +++ b/build/page-tweets.js @@ -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]);