mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +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) {
|
||||
|
||||
if(plugins.hasListeners('filter:post.upload')) {
|
||||
plugins.fireHook('filter:post.upload', image, callback);
|
||||
if(plugins.hasListeners('filter:post.uploadImage')) {
|
||||
plugins.fireHook('filter:post.uploadImage', image, callback);
|
||||
} else {
|
||||
|
||||
if (meta.config.allowFileUploads) {
|
||||
|
||||
Reference in New Issue
Block a user