-import { getServerActor } from '../../../helpers/utils'
-
-async function sendCreateVideo (video: VideoModel, t: Transaction) {
- if (video.privacy === VideoPrivacy.PRIVATE) return undefined
+import {
+ MActorLight,
+ MCommentOwnerVideo,
+ MVideoAccountLight,
+ MVideoAP,
+ MVideoPlaylistFull,
+ MVideoRedundancyFileVideo,
+ MVideoRedundancyStreamingPlaylistVideo
+} from '../../../types/models'
+import { getServerActor } from '@server/models/application/application'
+import { ContextType } from '@shared/models/activitypub/context'
+
+async function sendCreateVideo (video: MVideoAP, t: Transaction) {
+ if (!video.hasPrivacyForFederation()) return undefined