diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/activitypub.ts | 6 |
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 | ||
195 | async function fetchRemoteVideoDescription (video: VideoInstance) { | 195 | async 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) |