diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-15 09:44:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-15 09:44:21 +0200 |
commit | bacb544dbb548955d3f47365902b104d787a51a3 (patch) | |
tree | 9e737be962c25e10d793f4af22ecb021e17645e0 /server | |
parent | b3fc41a165b4fd039a18d8a7e41dcfeba4f43d7b (diff) | |
download | PeerTube-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.ts | 3 |
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 |