mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	changed hook name to filter:post.uploadImage
This commit is contained in:
		| @@ -396,8 +396,8 @@ var db = require('./database'), | |||||||
|  |  | ||||||
| 	Posts.uploadPostImage = function(image, callback) { | 	Posts.uploadPostImage = function(image, callback) { | ||||||
|  |  | ||||||
| 		if(plugins.hasListeners('filter:post.upload')) { | 		if(plugins.hasListeners('filter:post.uploadImage')) { | ||||||
| 			plugins.fireHook('filter:post.upload', image, callback); | 			plugins.fireHook('filter:post.uploadImage', image, callback); | ||||||
| 		} else { | 		} else { | ||||||
|  |  | ||||||
| 			if (meta.config.allowFileUploads) { | 			if (meta.config.allowFileUploads) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user