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

Disable tweet fetching

This commit is contained in:
Jocelyn Badgley
2025-01-26 13:26:15 -08:00
parent 91caaa2411
commit c54b977e54
2 changed files with 9 additions and 5 deletions

View File

@@ -55,8 +55,9 @@ module.exports = exports = async function tweets (pages) {
/* Load Missing Tweets **************************************************/
while (tweetsNeeded.length) {
log('Fetching tweets: ' + tweetsNeeded.join(', '));
const arriving = await Promise.all(chunk(tweetsNeeded, 99).map(twitter));
// log('Fetching tweets: ' + tweetsNeeded.join(', '));
// const arriving = await Promise.all(chunk(tweetsNeeded, 99).map(twitter));
const arriving = [];
const tweetsRequested = tweetsNeeded;
tweetsNeeded = [];
const loaded = [];
@@ -71,6 +72,7 @@ module.exports = exports = async function tweets (pages) {
const absent = difference(tweetsRequested, loaded);
for (const id of absent) {
if (!id) continue;
if (!hasOwn(twitterBackup, id)) {
log.error('Could not find tweet ' + id);
continue;