1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Fix RSS feed when HLS only is enabled

This commit is contained in:
Chocobozzz 2020-08-24 16:11:37 +02:00
parent 74055dc882
commit 97816649b7
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 117 additions and 13 deletions

View file

@ -59,7 +59,11 @@ function videoModelToFormattedJSON (video: MVideoFormattable, options?: VideoFor
label: VideoModel.getPrivacyLabel(video.privacy)
},
nsfw: video.nsfw,
description: options && 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,