Deduplicate title of pages edited/created

This commit is contained in:
Basti 2018-05-06 21:12:37 +02:00
parent 156ea44f0d
commit eb767a90f2

View File

@ -121,7 +121,7 @@ module.exports = async function(robot, kredits) {
}
function pageTitlesFromChanges(changes) {
return changes.map(c => `"${c.title}"`).join(', ');
return [...new Set(changes.map(c => `"${c.title}"`))].join(', ');
}
function calculateAmountForChanges(details) {