X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.ts;h=abfeeed2e02ad5a2f17b2f56a347bdebbdc88570;hb=24163420dd43e3429976c8518d1752832ba910a4;hp=b75c78b0764b506038a5abce15c18a25154c2062;hpb=66e001c848c009412c65cbce41be344d8985fd83;p=github%2FChocobozzz%2FPeerTube.git 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', () => {