1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Not sure why this keeps happening, but here's another small patch

This commit is contained in:
Jocelyn Badgley (Twipped)
2021-08-25 11:31:34 -07:00
parent b5851b4c38
commit 84ec899957
4 changed files with 777 additions and 776 deletions

View File

@@ -73,7 +73,8 @@ module.exports = exports = async function tweets (pages) {
function attachTweet (dict, tweetid) {
if (!hasOwn(twitterCache, tweetid) && twitterBackup[tweetid]) {
log.error(`Tweet ${tweetid} is missing from the cache.`);
log.error(`Tweet ${tweetid} is missing from the cache but exists in backup? How did we get here?`);
twitterCache[tweetid] = tweetparse(twitterBackup[tweetid]);
return;
}
const tweet = twitterCache[tweetid];