aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-format-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-format-utils.ts')
-rw-r--r--server/models/video/video-format-utils.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts
index a9a58624d..18364a287 100644
--- a/server/models/video/video-format-utils.ts
+++ b/server/models/video/video-format-utils.ts
@@ -12,6 +12,7 @@ import {
12} from '../../lib/activitypub' 12} from '../../lib/activitypub'
13 13
14export type VideoFormattingJSONOptions = { 14export type VideoFormattingJSONOptions = {
15 completeDescription?: boolean
15 additionalAttributes: { 16 additionalAttributes: {
16 state?: boolean, 17 state?: boolean,
17 waitTranscoding?: boolean, 18 waitTranscoding?: boolean,
@@ -44,7 +45,7 @@ function videoModelToFormattedJSON (video: VideoModel, options?: VideoFormatting
44 label: VideoModel.getPrivacyLabel(video.privacy) 45 label: VideoModel.getPrivacyLabel(video.privacy)
45 }, 46 },
46 nsfw: video.nsfw, 47 nsfw: video.nsfw,
47 description: video.getTruncatedDescription(), 48 description: options.completeDescription === true ? video.description : video.getTruncatedDescription(),
48 isLocal: video.isOwned(), 49 isLocal: video.isOwned(),
49 duration: video.duration, 50 duration: video.duration,
50 views: video.views, 51 views: video.views,