This commit is contained in:
Baris Soner Usakli
2013-07-13 12:27:37 -04:00
parent 16117d4331
commit 8d2c4fd625
2 changed files with 13 additions and 5 deletions

View File

@@ -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();
}
});
}