Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Enable more angular options

Chocobozzz07524e229fa8
diff --git a/client/tsconfig.json b/client/tsconfig.json
index f1d97110df..e041769dd9 100644
--- a/client/tsconfig.json
+++ b/client/tsconfig.json
@@ -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",
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts
index 18364a287d..f23dde9b87 100644
--- a/server/models/video/video-format-utils.ts
+++ b/server/models/video/video-format-utils.ts
@@ -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,