aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-11-11 15:44:08 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-11-16 20:29:26 +0100
commit41b5da1d8cb41f5c49f0e0a01a54106c9a5925dd (patch)
tree03033e34a2c0c924415e1639ee7d476007699e92 /server/models/video.js
parent55723d16fd0e323ce7175db8c4806c73d18b895d (diff)
downloadPeerTube-41b5da1d8cb41f5c49f0e0a01a54106c9a5925dd.tar.gz
PeerTube-41b5da1d8cb41f5c49f0e0a01a54106c9a5925dd.tar.zst
PeerTube-41b5da1d8cb41f5c49f0e0a01a54106c9a5925dd.zip
Server: use preview image for opengraph
Diffstat (limited to 'server/models/video.js')
-rw-r--r--server/models/video.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video.js b/server/models/video.js
index 4f2be5c96..0da2cb8ab 100644
--- a/server/models/video.js
+++ b/server/models/video.js
@@ -160,7 +160,7 @@ function generateMagnetUri () {
160 baseUrlHttp = constants.CONFIG.WEBSERVER.URL 160 baseUrlHttp = constants.CONFIG.WEBSERVER.URL
161 baseUrlWs = constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT 161 baseUrlWs = constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT
162 } else { 162 } else {
163 baseUrlHttp = constants.REMOTE_SCHEME.HTTP + this.podUrl 163 baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + this.podUrl
164 baseUrlWs = constants.REMOTE_SCHEME.WS + this.podUrl 164 baseUrlWs = constants.REMOTE_SCHEME.WS + this.podUrl
165 } 165 }
166 166