]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/client.js
Server: add migration scripts to the new mongo schemes
[github/Chocobozzz/PeerTube.git] / server / controllers / client.js
index 746c9b62bbf7945f3f432cd84fda56214b2d8326..68ddfccf2523a0ab52934fb077c068d1d8a65904 100644 (file)
@@ -39,7 +39,7 @@ function addOpenGraphTags (htmlStringPage, video) {
   if (video.isOwned()) {
     baseUrlHttp = constants.CONFIG.WEBSERVER.URL
   } else {
-    baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + video.podUrl
+    baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + video.podHost
   }
 
   // We fetch the remote preview (bigger than the thumbnail)
@@ -88,7 +88,7 @@ function generateWatchHtmlPage (req, res, next) {
     if (err) return next(err)
 
     const html = results.file.toString()
-    const video = results.video.toFormatedJSON()
+    const video = results.video
 
     const htmlStringPageWithTags = addOpenGraphTags(html, video)
     res.set('Content-Type', 'text/html; charset=UTF-8').send(htmlStringPageWithTags)