Use originallyPublishedAt from body on import if it exists

This commit is contained in:
Chocobozzz 2020-04-17 14:35:13 +02:00
parent 0502e3d0b6
commit 8a86e5dc4f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -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)