added filter:tags.search

This commit is contained in:
Barış Soner Uşaklı
2015-02-10 13:12:08 -05:00
parent 47964e8ff4
commit 34c1d69ed3

View File

@@ -271,8 +271,10 @@ module.exports = function(Topics) {
matches = matches.slice(0, 20).sort(function(a, b) {
return a > b;
});
callback(null, matches);
plugins.fireHook('filter:tags.search', {data: data, matches: matches}, function(err, data) {
callback(err, data ? data.matches : []);
});
});
};