Skip to content

Node.js based forum software built for the modern web

pass flagId into flag.update hook

Julian Lambef3da5b48e8
diff --git a/src/flags.js b/src/flags.js
index dd7b038b92..a50ea54973 100644
--- a/src/flags.js
+++ b/src/flags.js
@@ -475,7 +475,7 @@ Flags.update = function (flagId, uid, changeset, callback) {
tasks.push(async.apply(Flags.appendHistory, flagId, uid, changeset));
// Fire plugin hook
- tasks.push(async.apply(plugins.fireHook, 'action:flag.update', { changeset: changeset, uid: uid }));
+ tasks.push(async.apply(plugins.fireHook, 'action:flag.update', { flagId: flagId, changeset: changeset, uid: uid }));
async.parallel(tasks, function (err, data) {
return next(err);