From 2550fab35e0113264369f9637e1bea169efdfc8f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 14 Nov 2016 22:49:19 +0100 Subject: Server: add migration scripts to the new mongo schemes --- server/controllers/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/controllers/client.js') 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) { 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) -- cgit v1.2.3