mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	filter:config.get
This commit is contained in:
		| @@ -86,12 +86,14 @@ apiController.getConfig = function(req, res, next) { | |||||||
| 		config.categoryTopicSort = settings.categoryTopicSort || config.categoryTopicSort; | 		config.categoryTopicSort = settings.categoryTopicSort || config.categoryTopicSort; | ||||||
| 		config.topicSearchEnabled = settings.topicSearchEnabled || false; | 		config.topicSearchEnabled = settings.topicSearchEnabled || false; | ||||||
|  |  | ||||||
|  | 		plugins.fireHook('filter:config.get', config, function(err, config) { | ||||||
| 			if (res.locals.isAPI) { | 			if (res.locals.isAPI) { | ||||||
| 				res.status(200).json(config); | 				res.status(200).json(config); | ||||||
| 			} else { | 			} else { | ||||||
| 				next(err, config); | 				next(err, config); | ||||||
| 			} | 			} | ||||||
| 		}); | 		}); | ||||||
|  | 	}); | ||||||
|  |  | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user