mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-10 16:53:34 +02:00
filter dupes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user