changed hook name to filter:post.uploadImage

v1.18.x
Baris Soner Usakli 11 years ago
parent 378ccc3cb7
commit 1fc4568333

@ -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) {

Loading…
Cancel
Save