aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-19 10:43:53 +0200
committerChocobozzz <chocobozzz@cpy.re>2022-10-24 14:48:24 +0200
commit9ab330b90decf4edf152ff8e1d2948c065766b2c (patch)
tree29d924f50f7307e8e828a57ecb9ea78623487ce0 /server/helpers
parent3545e72c686ff1725bbdfd8d16d693e2f4aa75a3 (diff)
downloadPeerTube-9ab330b90decf4edf152ff8e1d2948c065766b2c.tar.gz
PeerTube-9ab330b90decf4edf152ff8e1d2948c065766b2c.tar.zst
PeerTube-9ab330b90decf4edf152ff8e1d2948c065766b2c.zip
Use private ACL for private videos in s3
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/webtorrent.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/webtorrent.ts b/server/helpers/webtorrent.ts
index 6d87c74f7..b458e86d2 100644
--- a/server/helpers/webtorrent.ts
+++ b/server/helpers/webtorrent.ts
@@ -165,7 +165,7 @@ function generateMagnetUri (
165 const xs = videoFile.getTorrentUrl() 165 const xs = videoFile.getTorrentUrl()
166 const announce = trackerUrls 166 const announce = trackerUrls
167 167
168 let urlList = video.requiresAuth(video.uuid) 168 let urlList = video.hasPrivateStaticPath()
169 ? [] 169 ? []
170 : [ videoFile.getFileUrl(video) ] 170 : [ videoFile.getFileUrl(video) ]
171 171
@@ -243,7 +243,7 @@ function buildAnnounceList () {
243} 243}
244 244
245function buildUrlList (video: MVideo, videoFile: MVideoFile) { 245function buildUrlList (video: MVideo, videoFile: MVideoFile) {
246 if (video.requiresAuth(video.uuid)) return [] 246 if (video.hasPrivateStaticPath()) return []
247 247
248 return [ videoFile.getFileUrl(video) ] 248 return [ videoFile.getFileUrl(video) ]
249} 249}