Changed ignoreDuplicates to avoidDuplicates.
This commit is contained in:
parent
8aca700269
commit
8bec57e906
|
@ -28,7 +28,7 @@ module.exports = {
|
|||
fetch: {
|
||||
sort: 'top',
|
||||
limit: 1000,
|
||||
ignoreDuplicates: true
|
||||
avoidDuplicates: true
|
||||
},
|
||||
reddit: {
|
||||
api: {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue