diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-12 15:47:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-12 16:51:59 +0100 |
commit | 22a73cb879a5cc775d4bec3d72fa9c9cf52e5175 (patch) | |
tree | 4c8d2d4f6fce8a520420ec83722fefc6d57b7a83 /server/lib/activitypub/videos.ts | |
parent | 91fa7960f42cff3481465bece3389007fbc278d3 (diff) | |
download | PeerTube-22a73cb879a5cc775d4bec3d72fa9c9cf52e5175.tar.gz PeerTube-22a73cb879a5cc775d4bec3d72fa9c9cf52e5175.tar.zst PeerTube-22a73cb879a5cc775d4bec3d72fa9c9cf52e5175.zip |
Add internal privacy mode
Diffstat (limited to 'server/lib/activitypub/videos.ts')
-rw-r--r-- | server/lib/activitypub/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index d80173e03..2fb1f8d49 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts | |||
@@ -79,7 +79,7 @@ async function federateVideoIfNeeded (videoArg: MVideoAPWithoutCaption, isNewVid | |||
79 | // Check this is not a blacklisted video, or unfederated blacklisted video | 79 | // Check this is not a blacklisted video, or unfederated blacklisted video |
80 | (video.isBlacklisted() === false || (isNewVideo === false && video.VideoBlacklist.unfederated === false)) && | 80 | (video.isBlacklisted() === false || (isNewVideo === false && video.VideoBlacklist.unfederated === false)) && |
81 | // Check the video is public/unlisted and published | 81 | // Check the video is public/unlisted and published |
82 | video.privacy !== VideoPrivacy.PRIVATE && video.state === VideoState.PUBLISHED | 82 | video.hasPrivacyForFederation() && video.state === VideoState.PUBLISHED |
83 | ) { | 83 | ) { |
84 | // Fetch more attributes that we will need to serialize in AP object | 84 | // Fetch more attributes that we will need to serialize in AP object |
85 | if (isArray(video.VideoCaptions) === false) { | 85 | if (isArray(video.VideoCaptions) === false) { |