This commit is contained in:
Barış Soner Uşaklı
2018-06-03 14:54:25 -04:00
parent 0b0ce1df8a
commit b7f5995aab
3 changed files with 2 additions and 8 deletions

View File

@@ -553,7 +553,6 @@ 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', { flagId: flagId, changeset: changeset, uid: uid })); // delete @ NodeBB v1.6.0
tasks.push(async.apply(plugins.fireHook, 'action:flags.update', { flagId: flagId, changeset: changeset, uid: uid }));
async.parallel(tasks, function (err) {
@@ -699,9 +698,6 @@ Flags.notify = function (flagObj, uid, callback) {
return callback(err);
}
plugins.fireHook('action:flag.create', {
flag: flagObj,
}); // delete @ NodeBB v1.6.0
plugins.fireHook('action:flags.create', {
flag: flagObj,
});