mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix: unregistring a plugin did not remove properly his hooks.
This commit is contained in:
committed by
Chocobozzz
parent
96a4a7c332
commit
98da1a7b4a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user