From: Chocobozzz Date: Fri, 28 Sep 2018 08:36:26 +0000 (+0200) Subject: Enable more angular options X-Git-Tag: v1.0.0-beta.16~28 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=07524e229fa88a0d01af9d52ce124760f8ca5fa4;p=github%2FChocobozzz%2FPeerTube.git Enable more angular options --- 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,