Skip to content

Node.js based forum software built for the modern web

1 more tag change

barisusaklidd78f4698066
diff --git a/src/socket.io/topics/tags.js b/src/socket.io/topics/tags.js
index 54bad0e7b3..dc604a450a 100644
--- a/src/socket.io/topics/tags.js
+++ b/src/socket.io/topics/tags.js
@@ -31,9 +31,7 @@ module.exports = function(SocketTopics) {
if (err) {
return callback(err);
}
- tags = tags.filter(function(tag) {
- return tag && tag.score > 0;
- });
+ tags = tags.filter(Boolean);
callback(null, {tags: tags, nextStart: stop + 1});
});
};