diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/videos/import.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index 7053d5253..626c81eca 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts | |||
@@ -172,7 +172,8 @@ function buildVideo (channelId: number, body: VideoImportCreate, importData: You | |||
172 | support: body.support || null, | 172 | support: body.support || null, |
173 | privacy: body.privacy || VideoPrivacy.PRIVATE, | 173 | privacy: body.privacy || VideoPrivacy.PRIVATE, |
174 | duration: 0, // duration will be set by the import job | 174 | duration: 0, // duration will be set by the import job |
175 | channelId: channelId | 175 | channelId: channelId, |
176 | originallyPublishedAt: importData.originallyPublishedAt | ||
176 | } | 177 | } |
177 | const video = new VideoModel(videoData) | 178 | const video = new VideoModel(videoData) |
178 | video.url = getVideoActivityPubUrl(video) | 179 | video.url = getVideoActivityPubUrl(video) |