Fix video full description

This commit is contained in:
Chocobozzz 2017-11-17 12:05:59 +01:00
parent afffe98839
commit 975e6e0e44
No known key found for this signature in database
GPG key ID: 583A612D890159BE
12 changed files with 109 additions and 620 deletions

View 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)