aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/activitypub.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-17 12:05:59 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:52 +0100
commit975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a (patch)
tree87ee25f3033f0fe0da76ee3649bb24cae0509c0e /server/helpers/activitypub.ts
parentafffe98839db7ccbfa9fb8b7d1413b97900fdc73 (diff)
downloadPeerTube-975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a.tar.gz
PeerTube-975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a.tar.zst
PeerTube-975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a.zip
Fix video full description
Diffstat (limited to 'server/helpers/activitypub.ts')
-rw-r--r--server/helpers/activitypub.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts
index 338698652..6f216e106 100644
--- a/server/helpers/activitypub.ts
+++ b/server/helpers/activitypub.ts
@@ -193,8 +193,12 @@ function fetchRemoteVideoPreview (video: VideoInstance) {
193} 193}
194 194
195async function fetchRemoteVideoDescription (video: VideoInstance) { 195async function fetchRemoteVideoDescription (video: VideoInstance) {
196 // FIXME: use url
197 const host = video.VideoChannel.Account.Server.host
198 const path = video.getDescriptionPath()
196 const options = { 199 const options = {
197 uri: video.url 200 uri: REMOTE_SCHEME.HTTP + '://' + host + path,
201 json: true
198 } 202 }
199 203
200 const { body } = await doRequest(options) 204 const { body } = await doRequest(options)