mirror of https://github.com/Chocobozzz/PeerTube
Enable more angular options
parent
cee43cf11c
commit
07524e229f
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue