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:
parent
5c5e587307
commit
d636ab58d0
3 changed files with 20 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue