aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorAndrés Maldonado <amaldona@etu.utc.fr>2018-12-11 15:05:42 +0100
committerChocobozzz <me@florianbigard.com>2019-02-12 11:19:19 +0100
commit4e553a41fdc67c4da186502522ac99a5ba230453 (patch)
tree116b3d461c496a3bbc011daeec02619a0b1e1c09 /server/controllers/api
parent31d065cc50e17a9abf263ed8c606cb272cd4933d (diff)
downloadPeerTube-4e553a41fdc67c4da186502522ac99a5ba230453.tar.gz
PeerTube-4e553a41fdc67c4da186502522ac99a5ba230453.tar.zst
PeerTube-4e553a41fdc67c4da186502522ac99a5ba230453.zip
Import original publication date (web UI)
Import original publication date when importing a video from YouTube in the web UI
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/videos/import.ts3
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)