mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Use originallyPublishedAt from body on import if it exists
This commit is contained in:
parent
0502e3d0b6
commit
8a86e5dc4f
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ function buildVideo (channelId: number, body: VideoImportCreate, importData: You
|
||||||
privacy: body.privacy || VideoPrivacy.PRIVATE,
|
privacy: body.privacy || VideoPrivacy.PRIVATE,
|
||||||
duration: 0, // duration will be set by the import job
|
duration: 0, // duration will be set by the import job
|
||||||
channelId: channelId,
|
channelId: channelId,
|
||||||
originallyPublishedAt: importData.originallyPublishedAt
|
originallyPublishedAt: body.originallyPublishedAt || importData.originallyPublishedAt
|
||||||
}
|
}
|
||||||
const video = new VideoModel(videoData)
|
const video = new VideoModel(videoData)
|
||||||
video.url = getVideoActivityPubUrl(video)
|
video.url = getVideoActivityPubUrl(video)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue