mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	closed #160
new build_title function to be called via socket also added categories.getCategoryField and refactored all calls to getTopicField to be error-first
This commit is contained in:
		@@ -712,6 +712,12 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }),
 | 
			
		||||
				socket.emit('api:admin.plugins.toggle', status);
 | 
			
		||||
			});
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		socket.on('api:meta.buildTitle', function(text, callback) {
 | 
			
		||||
			meta.title.build(text, uid, function(err, title) {
 | 
			
		||||
				callback(title);
 | 
			
		||||
			});
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
	
 | 
			
		||||
}(SocketIO));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user