]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/send/send-create.ts
Add internal privacy mode
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / send / send-create.ts
index edbc14a73e73fb66466bb5405ab0ad47d9879bad..1709d834841c8f759b3d8e6f7f9775a5f152bb71 100644 (file)
@@ -18,7 +18,7 @@ import {
 } from '../../../typings/models'
 
 async function sendCreateVideo (video: MVideoAP, t: Transaction) {
-  if (video.privacy === VideoPrivacy.PRIVATE) return undefined
+  if (!video.hasPrivacyForFederation()) return undefined
 
   logger.info('Creating job to send video creation of %s.', video.url)