Skip to content

Node.js based forum software built for the modern web

filter dupes

barisusaklic28494724f33
diff --git a/src/topics/unread.js b/src/topics/unread.js
index 3ea3d5b10c..d9f23d4b91 100644
--- a/src/topics/unread.js
+++ b/src/topics/unread.js
@@ -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) {