mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	Update topics.js
This commit is contained in:
		@@ -268,8 +268,7 @@ topicsController.get = function(req, res, next) {
 | 
				
			|||||||
		topics.increaseViewCount(tid);
 | 
							topics.increaseViewCount(tid);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		plugins.fireHook('filter:topic.build', {req: req, res: res, templateData: data}, function(err, data) {
 | 
							plugins.fireHook('filter:topic.build', {req: req, res: res, templateData: data}, function(err, data) {
 | 
				
			||||||
			if (err && process.env === 'development') {
 | 
								if (err) {
 | 
				
			||||||
				winston.warn(JSON.stringify(err));
 | 
					 | 
				
			||||||
				return next(err);
 | 
									return next(err);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			res.render('topic', data.templateData);
 | 
								res.render('topic', data.templateData);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user