Enable more angular options

pull/1144/head
Chocobozzz 2018-09-28 10:36:26 +02:00
parent cee43cf11c
commit 07524e229f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitAny": false,
"target": "es5",
"typeRoots": [
"node_modules/@types"
@ -32,6 +33,10 @@
"crypto": [ "./shims/noop" ]
}
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
"fullTemplateTypeCheck": true
},
"exclude": [
"../node_modules",
"node_modules",

View File

@ -45,7 +45,7 @@ function videoModelToFormattedJSON (video: VideoModel, options?: VideoFormatting
label: VideoModel.getPrivacyLabel(video.privacy)
},
nsfw: video.nsfw,
description: options.completeDescription === true ? video.description : video.getTruncatedDescription(),
description: options && options.completeDescription === true ? video.description : video.getTruncatedDescription(),
isLocal: video.isOwned(),
duration: video.duration,
views: video.views,