aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-22 10:46:54 +0200
committerChocobozzz <me@florianbigard.com>2019-08-22 10:46:54 +0200
commitd636ab58d042494ef9d17b2d9c4c841bae01c897 (patch)
treec199a0b346ca20f6891495a9b312a3009da9eb30 /server/lib
parent5c5e587307a27e173333789b5b5167d35f468b01 (diff)
downloadPeerTube-d636ab58d042494ef9d17b2d9c4c841bae01c897.tar.gz
PeerTube-d636ab58d042494ef9d17b2d9c4c841bae01c897.tar.zst
PeerTube-d636ab58d042494ef9d17b2d9c4c841bae01c897.zip
Fix html tag with blacklisted video
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/client-html.ts4
1 files changed, 2 insertions, 2 deletions
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 {
42 42
43 const [ html, video ] = await Promise.all([ 43 const [ html, video ] = await Promise.all([
44 ClientHtml.getIndexHTML(req, res), 44 ClientHtml.getIndexHTML(req, res),
45 VideoModel.load(videoId) 45 VideoModel.loadWithBlacklist(videoId)
46 ]) 46 ])
47 47
48 // Let Angular application handle errors 48 // Let Angular application handle errors
49 if (!video || video.privacy === VideoPrivacy.PRIVATE) { 49 if (!video || video.privacy === VideoPrivacy.PRIVATE || video.VideoBlacklist) {
50 return ClientHtml.getIndexHTML(req, res) 50 return ClientHtml.getIndexHTML(req, res)
51 } 51 }
52 52