Changed ignoreDuplicates to avoidDuplicates.

This commit is contained in:
ThePendulum 2018-04-23 14:58:23 +02:00
parent 8aca700269
commit 8bec57e906
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;