From d636ab58d042494ef9d17b2d9c4c841bae01c897 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Aug 2019 10:46:54 +0200 Subject: Fix html tag with blacklisted video --- server/lib/client-html.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib') diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts index a33aef26d..a1f4ae858 100644 --- a/server/lib/client-html.ts +++ b/server/lib/client-html.ts @@ -42,11 +42,11 @@ export class ClientHtml { const [ html, video ] = await Promise.all([ ClientHtml.getIndexHTML(req, res), - VideoModel.load(videoId) + VideoModel.loadWithBlacklist(videoId) ]) // Let Angular application handle errors - if (!video || video.privacy === VideoPrivacy.PRIVATE) { + if (!video || video.privacy === VideoPrivacy.PRIVATE || video.VideoBlacklist) { return ClientHtml.getIndexHTML(req, res) } -- cgit v1.2.3