- audiencify,
- broadcastToFollowers,
- getActorsInvolvedInVideo,
- getAudience,
- getObjectFollowersAudience,
- getOriginVideoAudience,
- unicastTo
-} from './misc'
-
-async function sendCreateVideo (video: VideoModel, t: Transaction) {
- if (video.privacy === VideoPrivacy.PRIVATE) return
+ MActorLight,
+ MCommentOwnerVideo,
+ MVideoAccountLight,
+ MVideoAP,
+ MVideoPlaylistFull,
+ MVideoRedundancyFileVideo,
+ MVideoRedundancyStreamingPlaylistVideo
+} from '../../../types/models'
+import { getServerActor } from '@server/models/application/application'
+import { ContextType } from '@shared/models/activitypub/context'
+
+const lTags = loggerTagsFactory('ap', 'create')
+
+async function sendCreateVideo (video: MVideoAP, t: Transaction) {
+ if (!video.hasPrivacyForFederation()) return undefined
+
+ logger.info('Creating job to send video creation of %s.', video.url, lTags(video.uuid))