From 5db4545cd2af2298ef6514dde2c36edc98ef5e33 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 20 Mar 2020 09:55:57 +0100 Subject: Fix internal videos in playlists --- server/models/video/video-playlist-element.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/models/video/video-playlist-element.ts b/server/models/video/video-playlist-element.ts index 4ba16f5fd..9ea73e82e 100644 --- a/server/models/video/video-playlist-element.ts +++ b/server/models/video/video-playlist-element.ts @@ -309,7 +309,10 @@ export class VideoPlaylistElementModel extends Model // Owned video, don't filter it if (accountId && video.VideoChannel.Account.id === accountId) return VideoPlaylistElementType.REGULAR - if (video.privacy === VideoPrivacy.PRIVATE) return VideoPlaylistElementType.PRIVATE + // Internal video? + if (video.privacy === VideoPrivacy.INTERNAL && accountId) return VideoPlaylistElementType.REGULAR + + if (video.privacy === VideoPrivacy.PRIVATE || video.privacy === VideoPrivacy.INTERNAL) return VideoPlaylistElementType.PRIVATE if (video.isBlacklisted() || video.isBlocked()) return VideoPlaylistElementType.UNAVAILABLE if (video.nsfw === true && displayNSFW === false) return VideoPlaylistElementType.UNAVAILABLE -- cgit v1.2.3