v1.18.x
Barış Soner Uşaklı 7 years ago
parent 0b0ce1df8a
commit b7f5995aab

@ -72,7 +72,7 @@
"nodebb-plugin-markdown": "8.4.3", "nodebb-plugin-markdown": "8.4.3",
"nodebb-plugin-mentions": "2.2.6", "nodebb-plugin-mentions": "2.2.6",
"nodebb-plugin-soundpack-default": "1.0.0", "nodebb-plugin-soundpack-default": "1.0.0",
"nodebb-plugin-spam-be-gone": "0.5.3", "nodebb-plugin-spam-be-gone": "0.5.4",
"nodebb-rewards-essentials": "0.0.11", "nodebb-rewards-essentials": "0.0.11",
"nodebb-theme-lavender": "5.0.4", "nodebb-theme-lavender": "5.0.4",
"nodebb-theme-persona": "9.0.13", "nodebb-theme-persona": "9.0.13",

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

@ -5,9 +5,7 @@ var async = require('async');
module.exports = function (Plugins) { module.exports = function (Plugins) {
Plugins.deprecatedHooks = { Plugins.deprecatedHooks = {
'action:post.flag': 'action:flag.create',
'action:flag.create': 'action:flags.create',
'action:flag.update': 'action:flags.update',
}; };
Plugins.internals = { Plugins.internals = {

Loading…
Cancel
Save