add filter:search.filterAndSort

v1.18.x
Baris Usakli 8 years ago
parent 037a0e5239
commit deecf04454

@ -122,7 +122,10 @@ function filterAndSort(pids, data, callback) {
sortPosts(posts, data);
pids = posts.map(function (post) {
plugins.fireHook('filter:search.filterAndSort', { pids: pids, posts: posts, data: data }, next);
},
function (result, next) {
pids = result.posts.map(function (post) {
return post && post.pid;
});

Loading…
Cancel
Save