mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	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:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user