Changed ignoreDuplicates to avoidDuplicates.
This commit is contained in:
parent
94e1575c30
commit
901029d9a1
|
@ -28,7 +28,7 @@ module.exports = {
|
||||||
fetch: {
|
fetch: {
|
||||||
sort: 'top',
|
sort: 'top',
|
||||||
limit: 1000,
|
limit: 1000,
|
||||||
ignoreDuplicates: true
|
avoidDuplicates: true
|
||||||
},
|
},
|
||||||
reddit: {
|
reddit: {
|
||||||
api: {
|
api: {
|
||||||
|
|
|
@ -7,7 +7,7 @@ function curateSubmissions(submissions) {
|
||||||
const processed = new Set();
|
const processed = new Set();
|
||||||
|
|
||||||
return submissions.reduce((acc, submission, index) => {
|
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}`);
|
console.log('\x1b[33m%s\x1b[0m', `Ignoring cross-post or repost '${submission.title}' - ${submission.url}`);
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
|
|
Loading…
Reference in New Issue