mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closes #6550
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
"nodebb-plugin-markdown": "8.4.3",
|
||||
"nodebb-plugin-mentions": "2.2.6",
|
||||
"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-theme-lavender": "5.0.4",
|
||||
"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));
|
||||
|
||||
// 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,
|
||||
});
|
||||
|
||||
@@ -5,9 +5,7 @@ var async = require('async');
|
||||
|
||||
module.exports = function (Plugins) {
|
||||
Plugins.deprecatedHooks = {
|
||||
'action:post.flag': 'action:flag.create',
|
||||
'action:flag.create': 'action:flags.create',
|
||||
'action:flag.update': 'action:flags.update',
|
||||
|
||||
};
|
||||
|
||||
Plugins.internals = {
|
||||
|
||||
Reference in New Issue
Block a user