]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/activitypub.ts
Fix video full description
[github/Chocobozzz/PeerTube.git] / server / helpers / activitypub.ts
index 338698652e3344abffaf06c9214e2e0d68d7698e..6f216e106a3fb0ddda70e2635f0431e8419a2a5f 100644 (file)
@@ -193,8 +193,12 @@ function fetchRemoteVideoPreview (video: VideoInstance) {
 }
 
 async function fetchRemoteVideoDescription (video: VideoInstance) {
+  // FIXME: use url
+  const host = video.VideoChannel.Account.Server.host
+  const path = video.getDescriptionPath()
   const options = {
-    uri: video.url
+    uri: REMOTE_SCHEME.HTTP + '://' + host + path,
+    json: true
   }
 
   const { body } = await doRequest(options)