Skip to content

Node.js based forum software built for the modern web

no need to get signature and custom profile info

barisusakli36dc0864702a
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) {