mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +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([
|
async.parallel([
|
||||||
function(next) {
|
function(next) {
|
||||||
Posts.addUserInfoToPost(post, function() {
|
user.getUserFields(post.uid, ['username', 'userslug', 'picture'], function(err, userData) {
|
||||||
next(null, post);
|
if (err) {
|
||||||
|
return next(err);
|
||||||
|
}
|
||||||
|
post.user = userData;
|
||||||
|
next();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function(next) {
|
function(next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user