Node.js based forum software built for the modern web
remove duplicates
barisusakli7585b7264406
diff --git a/src/database/mongo/sorted.js b/src/database/mongo/sorted.jsindex 3edaea5392..2bf159f25d 100644--- a/src/database/mongo/sorted.js+++ b/src/database/mongo/sorted.js@@ -180,6 +180,10 @@ module.exports = function(db, module) {return item.value;});+ data = data.filter(function(value, index, array) {+ return array.indexOf(value) === index;+ });+callback(null, data);});}