X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Fvideos%2Fownership.ts;h=88355b289501e3a7434958d4c449511d0a420128;hb=HEAD;hp=f48acbc681843190eb2b39051b4736218fbc2d28;hpb=421ff4618da64f0849353383f690a014024c40da;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/api/videos/ownership.ts b/server/controllers/api/videos/ownership.ts index f48acbc68..88355b289 100644 --- a/server/controllers/api/videos/ownership.ts +++ b/server/controllers/api/videos/ownership.ts @@ -1,4 +1,4 @@ -import * as express from 'express' +import express from 'express' import { MVideoFullLight } from '@server/types/models' import { HttpStatusCode } from '../../../../shared/models/http/http-error-codes' import { VideoChangeOwnershipStatus, VideoState } from '../../../../shared/models/videos' @@ -105,7 +105,7 @@ function acceptOwnership (req: express.Request, res: express.Response) { const channel = res.locals.videoChannel // We need more attributes for federation - const targetVideo = await VideoModel.loadAndPopulateAccountAndServerAndTags(videoChangeOwnership.Video.id, t) + const targetVideo = await VideoModel.loadFull(videoChangeOwnership.Video.id, t) const oldVideoChannel = await VideoChannelModel.loadAndPopulateAccount(targetVideo.channelId, t)