mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
closes #5961
This commit is contained in:
@@ -40,13 +40,6 @@ module.exports = function (Plugins) {
|
||||
'please use `' + Plugins.deprecatedHooks[data.hook] + '` instead.' :
|
||||
'there is no alternative.'
|
||||
));
|
||||
} else {
|
||||
// handle hook's startsWith, i.e. action:homepage.get
|
||||
var parts = data.hook.split(':');
|
||||
if (parts.length > 2) {
|
||||
parts.pop();
|
||||
}
|
||||
parts.join(':');
|
||||
}
|
||||
|
||||
if (data.hook && data.method) {
|
||||
|
||||
Reference in New Issue
Block a user