From 89cd12756035a146bbcc4db78cd3cd64f2f3d88d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Jul 2019 17:30:41 +0200 Subject: Add hook filters tests --- server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server.ts') diff --git a/server.ts b/server.ts index b75c78b07..abfeeed2e 100644 --- a/server.ts +++ b/server.ts @@ -114,6 +114,7 @@ import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' import { PeerTubeSocket } from './server/lib/peertube-socket' import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls' import { PluginsCheckScheduler } from './server/lib/schedulers/plugins-check-scheduler' +import { Hooks } from './server/lib/plugins/hooks' // ----------- Command line ----------- @@ -269,7 +270,7 @@ async function startApplication () { logger.info('Server listening on %s:%d', hostname, port) logger.info('Web server: %s', WEBSERVER.URL) - PluginManager.Instance.runHook('action:application.listening') + Hooks.runAction('action:application.listening') }) process.on('exit', () => { -- cgit v1.2.3