Optimize watch endpoint
authorChocobozzz <me@florianbigard.com>
Tue, 6 Aug 2019 07:26:28 +0000 (09:26 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 6 Aug 2019 15:20:19 +0000 (17:20 +0200)
server/lib/client-html.ts

index 44bd7abb518b8372ad34269158e070870661e9e2..8841dd2ac2a69f02e88c26eb0caf3760cf49c851 100644 (file)
@@ -41,7 +41,7 @@ export class ClientHtml {
 
     const [ html, video ] = await Promise.all([
       ClientHtml.getIndexHTML(req, res),
-      VideoModel.loadAndPopulateAccountAndServerAndTags(videoId)
+      VideoModel.load(videoId)
     ])
 
     // Let Angular application handle errors