From 8a86e5dc4f04d7fb07d012fbe2cb7ab3baadbf19 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Apr 2020 14:35:13 +0200 Subject: [PATCH] Use originallyPublishedAt from body on import if it exists --- server/controllers/api/videos/import.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index fb9d73140..f4630375e 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts @@ -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) -- 2.25.1