aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/url.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-01 18:40:17 +0200
committerChocobozzz <me@florianbigard.com>2018-10-01 18:40:17 +0200
commitd05be4d944e73151cc6cf916c336f63e47feca20 (patch)
tree359719709d2daeec2a0bac2be8493b642146da8a /server/lib/activitypub/url.ts
parent478796690075a8868bf39a33f3ead80cf0040f42 (diff)
downloadPeerTube-d05be4d944e73151cc6cf916c336f63e47feca20.tar.gz
PeerTube-d05be4d944e73151cc6cf916c336f63e47feca20.tar.zst
PeerTube-d05be4d944e73151cc6cf916c336f63e47feca20.zip
Don't build redundancy urls with "-1" as fps
Diffstat (limited to 'server/lib/activitypub/url.ts')
-rw-r--r--server/lib/activitypub/url.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts
index 2e7c56955..e792be698 100644
--- a/server/lib/activitypub/url.ts
+++ b/server/lib/activitypub/url.ts
@@ -11,7 +11,7 @@ function getVideoActivityPubUrl (video: VideoModel) {
11} 11}
12 12
13function getVideoCacheFileActivityPubUrl (videoFile: VideoFileModel) { 13function getVideoCacheFileActivityPubUrl (videoFile: VideoFileModel) {
14 const suffixFPS = videoFile.fps ? '-' + videoFile.fps : '' 14 const suffixFPS = videoFile.fps && videoFile.fps !== -1 ? '-' + videoFile.fps : ''
15 15
16 return `${CONFIG.WEBSERVER.URL}/redundancy/videos/${videoFile.Video.uuid}/${videoFile.resolution}${suffixFPS}` 16 return `${CONFIG.WEBSERVER.URL}/redundancy/videos/${videoFile.Video.uuid}/${videoFile.resolution}${suffixFPS}`
17} 17}