aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-15 09:44:21 +0200
committerChocobozzz <me@florianbigard.com>2021-10-15 09:44:21 +0200
commitbacb544dbb548955d3f47365902b104d787a51a3 (patch)
tree9e737be962c25e10d793f4af22ecb021e17645e0 /server
parentb3fc41a165b4fd039a18d8a7e41dcfeba4f43d7b (diff)
downloadPeerTube-bacb544dbb548955d3f47365902b104d787a51a3.tar.gz
PeerTube-bacb544dbb548955d3f47365902b104d787a51a3.tar.zst
PeerTube-bacb544dbb548955d3f47365902b104d787a51a3.zip
Remove old federation compatibility
Diffstat (limited to 'server')
-rw-r--r--server/lib/activitypub/videos/shared/object-to-model-attributes.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/server/lib/activitypub/videos/shared/object-to-model-attributes.ts b/server/lib/activitypub/videos/shared/object-to-model-attributes.ts
index 62354ab56..50ca4e673 100644
--- a/server/lib/activitypub/videos/shared/object-to-model-attributes.ts
+++ b/server/lib/activitypub/videos/shared/object-to-model-attributes.ts
@@ -120,9 +120,6 @@ function getStreamingPlaylistAttributesFromObject (video: MVideoId, videoObject:
120 120
121 let files: unknown[] = playlistUrlObject.tag.filter(u => isAPVideoUrlObject(u)) as ActivityVideoUrlObject[] 121 let files: unknown[] = playlistUrlObject.tag.filter(u => isAPVideoUrlObject(u)) as ActivityVideoUrlObject[]
122 122
123 // FIXME: backward compatibility introduced in v2.1.0
124 if (files.length === 0) files = videoFiles
125
126 if (!segmentsSha256UrlObject) { 123 if (!segmentsSha256UrlObject) {
127 logger.warn('No segment sha256 URL found in AP playlist object.', { playlistUrl: playlistUrlObject }) 124 logger.warn('No segment sha256 URL found in AP playlist object.', { playlistUrl: playlistUrlObject })
128 continue 125 continue