aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-format-utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-28 10:36:26 +0200
committerChocobozzz <me@florianbigard.com>2018-09-28 10:36:46 +0200
commit07524e229fa88a0d01af9d52ce124760f8ca5fa4 (patch)
tree04cf6bda11b601c0eda3dcc8525f75c6845c98f3 /server/models/video/video-format-utils.ts
parentcee43cf11c31b76329fec20ce7f075ed97d1cd70 (diff)
downloadPeerTube-07524e229fa88a0d01af9d52ce124760f8ca5fa4.tar.gz
PeerTube-07524e229fa88a0d01af9d52ce124760f8ca5fa4.tar.zst
PeerTube-07524e229fa88a0d01af9d52ce124760f8ca5fa4.zip
Enable more angular options
Diffstat (limited to 'server/models/video/video-format-utils.ts')
-rw-r--r--server/models/video/video-format-utils.ts2
1 files changed, 1 insertions, 1 deletions
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
45 label: VideoModel.getPrivacyLabel(video.privacy) 45 label: VideoModel.getPrivacyLabel(video.privacy)
46 }, 46 },
47 nsfw: video.nsfw, 47 nsfw: video.nsfw,
48 description: options.completeDescription === true ? video.description : video.getTruncatedDescription(), 48 description: options && options.completeDescription === true ? video.description : video.getTruncatedDescription(),
49 isLocal: video.isOwned(), 49 isLocal: video.isOwned(),
50 duration: video.duration, 50 duration: video.duration,
51 views: video.views, 51 views: video.views,