-import { getServerActor } from '../../../helpers/utils'
-
-async function sendUpdateVideo (video: VideoModel, t: Transaction, overrodeByActor?: ActorModel) {
- if (video.privacy === VideoPrivacy.PRIVATE) return undefined
+import {
+ MAccountDefault,
+ MActor,
+ MActorLight,
+ MChannelDefault,
+ MVideoAP,
+ MVideoAPWithoutCaption,
+ MVideoPlaylistFull,
+ MVideoRedundancyVideo
+} from '../../../typings/models'
+import { getServerActor } from '@server/models/application/application'
+
+async function sendUpdateVideo (videoArg: MVideoAPWithoutCaption, t: Transaction, overrodeByActor?: MActor) {
+ const video = videoArg as MVideoAP
+
+ if (!video.hasPrivacyForFederation()) return undefined