diff --git a/client/tsconfig.json b/client/tsconfig.json index f1d97110d..e041769dd 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 18364a287..f23dde9b8 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,