1 more tag change

This commit is contained in:
barisusakli
2016-09-15 23:47:03 +03:00
parent c98b6b7630
commit dd78f46980

View File

@@ -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});
});
};