forgot to return just posts array

v1.18.x
psychobunny 11 years ago
parent 77dfc7378b
commit 180625ece3

@ -344,7 +344,9 @@ var async = require('async'),
next(null, post);
});
}, function(err, posts) {
plugins.fireHook('filter:post.getPostSummaryByPids', {posts: posts, uid: uid}, callback);
plugins.fireHook('filter:post.getPostSummaryByPids', {posts: posts, uid: uid}, function(err, postData) {
callback(err, postData.posts);
});
});
});
});

Loading…
Cancel
Save