From 975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Nov 2017 12:05:59 +0100 Subject: Fix video full description --- server/helpers/activitypub.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/helpers/activitypub.ts') 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) { } 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) -- cgit v1.2.3