Skip to content

Node.js based forum software built for the modern web

setFields makes more sense

barisusaklie593c8e6b12f
diff --git a/src/posts.js b/src/posts.js
index 34a8b73f67..33c6ce4657 100644
--- a/src/posts.js
+++ b/src/posts.js
@@ -143,7 +143,7 @@ var async = require('async'),
pid: pid
};
data[field] = value;
- plugins.fireHook('action:post.setField', data);
+ plugins.fireHook('action:post.setFields', data);
callback();
});
};
@@ -154,7 +154,7 @@ var async = require('async'),
return callback(err);
}
data.pid = pid;
- plugins.fireHook('action:post.setField', data);
+ plugins.fireHook('action:post.setFields', data);
callback();
});
};