added filter:teasers.get

v1.18.x
barisusakli 10 years ago
parent ea91518f30
commit 7dde229517

@ -7,6 +7,7 @@ var async = require('async'),
db = require('../database'),
user = require('../user'),
posts = require('../posts'),
plugins = require('../plugins'),
utils = require('../../public/src/utils');
@ -61,7 +62,9 @@ module.exports = function(Topics) {
return tidToPost[topic.tid];
});
callback(null, teasers);
plugins.fireHook('filter:teasers.get', {teasers: teasers}, function(err, data) {
callback(err, data ? data.teasers : null);
});
});
});
};

Loading…
Cancel
Save