From 1fc45683338ca45a93500b7d8246573dd40a7b21 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sat, 8 Feb 2014 22:21:57 -0500 Subject: [PATCH] changed hook name to filter:post.uploadImage --- src/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posts.js b/src/posts.js index e54c3921b3..dbd9a7d3ba 100644 --- a/src/posts.js +++ b/src/posts.js @@ -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) {