From 34c1d69ed33fcc843f06291c4029c995667e1209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 10 Feb 2015 13:12:08 -0500 Subject: [PATCH] added filter:tags.search --- src/topics/tags.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/topics/tags.js b/src/topics/tags.js index 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 : []); + }); }); };