mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 20:08:32 +02:00
added filter:tags.search
This commit is contained in:
@@ -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 : []);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user