aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-import.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-28 10:18:37 +0200
committerChocobozzz <me@florianbigard.com>2018-09-28 10:18:37 +0200
commitc39e86b898370a55c147ed1958db00723b0364e4 (patch)
tree4a3e1dcdc7a061d9d86fd27bd76492a783b4172b /server/models/video/video-import.ts
parent161b061d4e51eb1e2b2b7e9482d5299489ef7c45 (diff)
downloadPeerTube-c39e86b898370a55c147ed1958db00723b0364e4.tar.gz
PeerTube-c39e86b898370a55c147ed1958db00723b0364e4.tar.zst
PeerTube-c39e86b898370a55c147ed1958db00723b0364e4.zip
Fix video description when importing by url
Diffstat (limited to 'server/models/video/video-import.ts')
-rw-r--r--server/models/video/video-import.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/models/video/video-import.ts b/server/models/video/video-import.ts
index 9d1f783c7..8d442b3f8 100644
--- a/server/models/video/video-import.ts
+++ b/server/models/video/video-import.ts
@@ -146,12 +146,11 @@ export class VideoImportModel extends Model<VideoImportModel> {
146 146
147 toFormattedJSON (): VideoImport { 147 toFormattedJSON (): VideoImport {
148 const videoFormatOptions = { 148 const videoFormatOptions = {
149 completeDescription: true,
149 additionalAttributes: { state: true, waitTranscoding: true, scheduledUpdate: true } 150 additionalAttributes: { state: true, waitTranscoding: true, scheduledUpdate: true }
150 } 151 }
151 const video = this.Video 152 const video = this.Video
152 ? Object.assign(this.Video.toFormattedJSON(videoFormatOptions), { 153 ? Object.assign(this.Video.toFormattedJSON(videoFormatOptions), { tags: this.Video.Tags.map(t => t.name) })
153 tags: this.Video.Tags.map(t => t.name)
154 })
155 : undefined 154 : undefined
156 155
157 return { 156 return {