aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video')
-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,