diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/client.js b/server/controllers/client.js index 746c9b62b..68ddfccf2 100644 --- a/server/controllers/client.js +++ b/server/controllers/client.js | |||
@@ -39,7 +39,7 @@ function addOpenGraphTags (htmlStringPage, video) { | |||
39 | if (video.isOwned()) { | 39 | if (video.isOwned()) { |
40 | baseUrlHttp = constants.CONFIG.WEBSERVER.URL | 40 | baseUrlHttp = constants.CONFIG.WEBSERVER.URL |
41 | } else { | 41 | } else { |
42 | baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + video.podUrl | 42 | baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + video.podHost |
43 | } | 43 | } |
44 | 44 | ||
45 | // We fetch the remote preview (bigger than the thumbnail) | 45 | // We fetch the remote preview (bigger than the thumbnail) |
@@ -88,7 +88,7 @@ function generateWatchHtmlPage (req, res, next) { | |||
88 | if (err) return next(err) | 88 | if (err) return next(err) |
89 | 89 | ||
90 | const html = results.file.toString() | 90 | const html = results.file.toString() |
91 | const video = results.video.toFormatedJSON() | 91 | const video = results.video |
92 | 92 | ||
93 | const htmlStringPageWithTags = addOpenGraphTags(html, video) | 93 | const htmlStringPageWithTags = addOpenGraphTags(html, video) |
94 | res.set('Content-Type', 'text/html; charset=UTF-8').send(htmlStringPageWithTags) | 94 | res.set('Content-Type', 'text/html; charset=UTF-8').send(htmlStringPageWithTags) |