diff options
Diffstat (limited to 'server/lib/activitypub/videos.ts')
-rw-r--r-- | server/lib/activitypub/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index 66330a964..c38edad56 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts | |||
@@ -912,7 +912,7 @@ function getTrackerUrls (object: VideoObject, video: MVideoWithHost) { | |||
912 | 912 | ||
913 | const trackers = object.url.filter(u => isAPVideoTrackerUrlObject(u)) | 913 | const trackers = object.url.filter(u => isAPVideoTrackerUrlObject(u)) |
914 | .map((u: ActivityTrackerUrlObject) => { | 914 | .map((u: ActivityTrackerUrlObject) => { |
915 | if (u.rel.includes('websocket')) wsFound = true | 915 | if (isArray(u.rel) && u.rel.includes('websocket')) wsFound = true |
916 | 916 | ||
917 | return u.href | 917 | return u.href |
918 | }) | 918 | }) |