Skip to content

Node.js based forum software built for the modern web

closes #6550

Barış Soner Uşaklıb7f5995aab90
diff --git a/install/package.json b/install/package.json
index ef089c7be9..99aa7e96c0 100644
--- a/install/package.json
+++ b/install/package.json
@@ -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",
diff --git a/src/flags.js b/src/flags.js
index ee5c5fa97f..238bd7f204 100644
--- a/src/flags.js
+++ b/src/flags.js
@@ -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,
});
diff --git a/src/plugins/hooks.js b/src/plugins/hooks.js
index 99c7408e0c..50e9a2fdcc 100644
--- a/src/plugins/hooks.js
+++ b/src/plugins/hooks.js
@@ -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 = {