diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-14 22:49:19 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-16 20:29:26 +0100 |
commit | 2550fab35e0113264369f9637e1bea169efdfc8f (patch) | |
tree | 23480a9565de29791545612864af240ccceb5d1f /server/controllers/client.js | |
parent | c92372d0aa8bd2bc02152941cfd4546b45949368 (diff) | |
download | PeerTube-2550fab35e0113264369f9637e1bea169efdfc8f.tar.gz PeerTube-2550fab35e0113264369f9637e1bea169efdfc8f.tar.zst PeerTube-2550fab35e0113264369f9637e1bea169efdfc8f.zip |
Server: add migration scripts to the new mongo schemes
Diffstat (limited to 'server/controllers/client.js')
-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) |