From bacb544dbb548955d3f47365902b104d787a51a3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Oct 2021 09:44:21 +0200 Subject: [PATCH] Remove old federation compatibility --- .../activitypub/videos/shared/object-to-model-attributes.ts | 3 --- 1 file changed, 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: let files: unknown[] = playlistUrlObject.tag.filter(u => isAPVideoUrlObject(u)) as ActivityVideoUrlObject[] - // FIXME: backward compatibility introduced in v2.1.0 - if (files.length === 0) files = videoFiles - if (!segmentsSha256UrlObject) { logger.warn('No segment sha256 URL found in AP playlist object.', { playlistUrl: playlistUrlObject }) continue