Node.js based forum software built for the modern web
added filter:tags.search
Barış Soner Uşaklı34c1d69ed33f
diff --git a/src/topics/tags.js b/src/topics/tags.jsindex be01380ef5..14982b4e1e 100644--- a/src/topics/tags.js+++ b/src/topics/tags.js@@ -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 : []);+ });});};