diff --git a/src/posts.js b/src/posts.js index 16cdb89df8..24a81a7e39 100644 --- a/src/posts.js +++ b/src/posts.js @@ -284,8 +284,12 @@ var db = require('./database'), async.parallel([ function(next) { - Posts.addUserInfoToPost(post, function() { - next(null, post); + user.getUserFields(post.uid, ['username', 'userslug', 'picture'], function(err, userData) { + if (err) { + return next(err); + } + post.user = userData; + next(); }); }, function(next) {