From 901029d9a1c8d71cd9937736b8f5a8db46b972f1 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 11 Sep 2024 05:16:53 +0200 Subject: [PATCH] Changed ignoreDuplicates to avoidDuplicates. --- config/default.js | 2 +- src/curate/submissions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/default.js b/config/default.js index df3b008..417d167 100644 --- a/config/default.js +++ b/config/default.js @@ -28,7 +28,7 @@ module.exports = { fetch: { sort: 'top', limit: 1000, - ignoreDuplicates: true + avoidDuplicates: true }, reddit: { api: { diff --git a/src/curate/submissions.js b/src/curate/submissions.js index b4afa7e..d9f7583 100644 --- a/src/curate/submissions.js +++ b/src/curate/submissions.js @@ -7,7 +7,7 @@ function curateSubmissions(submissions) { const processed = new Set(); return submissions.reduce((acc, submission, index) => { - if(config.fetch.ignoreDuplicates && processed.has(submission.url)) { + if(config.fetch.avoidDuplicates && processed.has(submission.url)) { console.log('\x1b[33m%s\x1b[0m', `Ignoring cross-post or repost '${submission.title}' - ${submission.url}`); return acc;