Use originallyPublishedAt from body on import if it exists
This commit is contained in:
parent
0502e3d0b6
commit
8a86e5dc4f
|
@ -231,7 +231,7 @@ function buildVideo (channelId: number, body: VideoImportCreate, importData: You
|
|||
privacy: body.privacy || VideoPrivacy.PRIVATE,
|
||||
duration: 0, // duration will be set by the import job
|
||||
channelId: channelId,
|
||||
originallyPublishedAt: importData.originallyPublishedAt
|
||||
originallyPublishedAt: body.originallyPublishedAt || importData.originallyPublishedAt
|
||||
}
|
||||
const video = new VideoModel(videoData)
|
||||
video.url = getVideoActivityPubUrl(video)
|
||||
|
|
Loading…
Reference in New Issue