- const videoChangeOwnership = res.locals.videoChangeOwnership as VideoChangeOwnershipModel
- const targetVideo = videoChangeOwnership.Video
- const channel = res.locals.videoChannel as VideoChannelModel
+ const videoChangeOwnership = res.locals.videoChangeOwnership
+ const channel = res.locals.videoChannel
+
+ // We need more attributes for federation
+ const targetVideo = await VideoModel.loadAndPopulateAccountAndServerAndTags(videoChangeOwnership.Video.id, t)
+
+ const oldVideoChannel = await VideoChannelModel.loadAndPopulateAccount(targetVideo.channelId, t)