X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Fvideos%2Fimport.ts;h=7576e77e73808bc052ea82811dfecbabfee18937;hb=ba2684ceddf9b76312635b9cddc6bf6975ce436a;hp=44283e26674e4525127013127b37dcd8cf6c1734;hpb=d3d3deaa7aae49d6d949aebcba015af75d292ccc;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index 44283e266..7576e77e7 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts @@ -274,7 +274,7 @@ async function buildVideo (channelId: number, body: VideoImportCreate, importDat support: body.support || null, privacy: body.privacy || VideoPrivacy.PRIVATE, duration: 0, // duration will be set by the import job - channelId: channelId, + channelId, originallyPublishedAt: body.originallyPublishedAt ? new Date(body.originallyPublishedAt) : importData.originallyPublishedAt