mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
no need to get signature and custom profile info
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user