mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
closes #76
This commit is contained in:
10
src/posts.js
10
src/posts.js
@@ -41,7 +41,15 @@ marked.setOptions({
|
||||
post.picture = userData.picture || require('gravatar').url('', {}, https=global.config.https);
|
||||
post.signature = marked(userData.signature || '');
|
||||
|
||||
callback();
|
||||
if(post.editor !== '') {
|
||||
user.getUserFields(post.editor, ['username', 'userslug'], function(editorData) {
|
||||
post.editorname = editorData.username;
|
||||
post.editorslug = editorData.userslug;
|
||||
callback();
|
||||
});
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user