converted filter:posts.custom_profile_info to accept an array instead of building a string for better themability. closes #886

This commit is contained in:
psychobunny
2014-01-30 13:06:30 -05:00
parent 9afef92763
commit c253760737
2 changed files with 5 additions and 3 deletions

View File

@@ -206,11 +206,11 @@ var db = require('./database'),
}
}
plugins.fireHook('filter:posts.custom_profile_info', {profile: "", uid: post.uid, pid: post.pid}, function(err, profile_info) {
plugins.fireHook('filter:posts.custom_profile_info', {profile: [], uid: post.uid, pid: post.pid}, function(err, profile_info) {
if(err) {
return callback(err);
}
post.additional_profile_info = profile_info.profile;
post.custom_profile_info = profile_info.profile;
if (post.editor !== '') {
user.getUserFields(post.editor, ['username', 'userslug'], function(err, editorData) {