aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-format-utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-24 16:11:37 +0200
committerChocobozzz <me@florianbigard.com>2020-08-24 16:11:37 +0200
commit97816649b793bdd0f3df64631ae0ef7cf3d7461c (patch)
treeabd56aac43d2d79dc4840d2ed6385449e1563286 /server/models/video/video-format-utils.ts
parent74055dc882e484b217f398917a3cc24bf2ea8cbe (diff)
downloadPeerTube-97816649b793bdd0f3df64631ae0ef7cf3d7461c.tar.gz
PeerTube-97816649b793bdd0f3df64631ae0ef7cf3d7461c.tar.zst
PeerTube-97816649b793bdd0f3df64631ae0ef7cf3d7461c.zip
Fix RSS feed when HLS only is enabled
Diffstat (limited to 'server/models/video/video-format-utils.ts')
-rw-r--r--server/models/video/video-format-utils.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts
index 7a17c839f..ad512fc7f 100644
--- a/server/models/video/video-format-utils.ts
+++ b/server/models/video/video-format-utils.ts
@@ -59,7 +59,11 @@ function videoModelToFormattedJSON (video: MVideoFormattable, options?: VideoFor
59 label: VideoModel.getPrivacyLabel(video.privacy) 59 label: VideoModel.getPrivacyLabel(video.privacy)
60 }, 60 },
61 nsfw: video.nsfw, 61 nsfw: video.nsfw,
62 description: options && options.completeDescription === true ? video.description : video.getTruncatedDescription(), 62
63 description: options && options.completeDescription === true
64 ? video.description
65 : video.getTruncatedDescription(),
66
63 isLocal: video.isOwned(), 67 isLocal: video.isOwned(),
64 duration: video.duration, 68 duration: video.duration,
65 views: video.views, 69 views: video.views,