From: John Livingston Date: Thu, 16 Jan 2020 17:49:03 +0000 (+0100) Subject: Fix: unregistring a plugin did not remove properly his hooks. X-Git-Tag: v2.1.0-rc.1~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98da1a7b4a1fd4dde33dddaeb6adf79b2248e244;p=oweals%2Fpeertube.git Fix: unregistring a plugin did not remove properly his hooks. --- diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts index 8127992b5..7ebdabd34 100644 --- a/server/lib/plugins/plugin-manager.ts +++ b/server/lib/plugins/plugin-manager.ts @@ -194,7 +194,7 @@ export class PluginManager implements ServerHook { // Remove hooks of this plugin for (const key of Object.keys(this.hooks)) { - this.hooks[key] = this.hooks[key].filter(h => h.pluginName !== npmName) + this.hooks[key] = this.hooks[key].filter(h => h.npmName !== npmName) } this.reinitVideoConstants(plugin.npmName)