Skip to content

Node.js based forum software built for the modern web

changed hook name to filter:post.uploadImage

Baris Soner Usakli1fc45683338c
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) {