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