filter dupes

This commit is contained in:
barisusakli
2016-01-04 22:50:35 +02:00
parent 3664c94581
commit c28494724f

View File

@@ -169,8 +169,8 @@ module.exports = function(Topics) {
return callback();
}
tids = tids.filter(function(tid) {
return tid && utils.isNumber(tid);
tids = tids.filter(function(tid, index, array) {
return tid && utils.isNumber(tid) && array.indexOf(tid) === index;
});
if (!tids.length) {