1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Fix html tag with blacklisted video

This commit is contained in:
Chocobozzz 2019-08-22 10:46:54 +02:00
parent 5c5e587307
commit d636ab58d0
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 20 additions and 2 deletions

View file

@ -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)
}