From 36dc0864702afac3c13c46ee20890c91e4542eb5 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 22 Mar 2014 21:04:53 -0400 Subject: [PATCH] no need to get signature and custom profile info --- src/posts.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) {