]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/videos.ts
Cleanup
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / videos.ts
index 66330a9649beb40233b9a77cbdb4878ed85ecbd3..c38edad56dad3980d8fde2b15f5fb8147ce981a0 100644 (file)
@@ -912,7 +912,7 @@ function getTrackerUrls (object: VideoObject, video: MVideoWithHost) {
 
   const trackers = object.url.filter(u => isAPVideoTrackerUrlObject(u))
     .map((u: ActivityTrackerUrlObject) => {
-      if (u.rel.includes('websocket')) wsFound = true
+      if (isArray(u.rel) && u.rel.includes('websocket')) wsFound = true
 
       return u.href
     })