Changed ignoreDuplicates to avoidDuplicates.

This commit is contained in:
DebaucheryLibrarian 2024-09-11 05:16:53 +02:00
parent 94e1575c30
commit 901029d9a1
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ module.exports = {
fetch: {
sort: 'top',
limit: 1000,
ignoreDuplicates: true
avoidDuplicates: true
},
reddit: {
api: {

View File

@ -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;