added new hook, filter:controllers.topic.get

v1.18.x
Julian Lam 10 years ago
parent f2bfb4c0d1
commit a8c818c6cd

@ -11,6 +11,7 @@ var topicsController = {},
topics = require('../topics'),
posts = require('../posts'),
privileges = require('../privileges'),
plugins = require('../plugins'),
helpers = require('./helpers'),
utils = require('../../public/src/utils');
@ -120,7 +121,9 @@ topicsController.get = function(req, res, next) {
topicData.posts.splice(0, 1);
}
next(null, topicData);
plugins.fireHook('filter:controllers.topic.get', topicData, function(err, topicData) {
next(null, topicData);
});
});
},
function (topicData, next) {

Loading…
Cancel
Save