aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-21 15:05:29 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-21 15:05:29 +0200
commit9e379c835c2badfe8e9088e25870af0a6a8c4d40 (patch)
tree0c0b1d08aee456a04daec194eb522a2d4588cbf8 /server
parentf1f4732f8ef20b1c33058b9b2c486d4b5e87b646 (diff)
downloadPeerTube-9e379c835c2badfe8e9088e25870af0a6a8c4d40.tar.gz
PeerTube-9e379c835c2badfe8e9088e25870af0a6a8c4d40.tar.zst
PeerTube-9e379c835c2badfe8e9088e25870af0a6a8c4d40.zip
Don't send the "http(s)" for the podUrl
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/v1/videos.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/v1/videos.js b/server/controllers/api/v1/videos.js
index 73e496ace..e903cbcf4 100644
--- a/server/controllers/api/v1/videos.js
+++ b/server/controllers/api/v1/videos.js
@@ -251,7 +251,7 @@ function getFormatedVideo (videoObj) {
251 id: videoObj._id, 251 id: videoObj._id,
252 name: videoObj.name, 252 name: videoObj.name,
253 description: videoObj.description, 253 description: videoObj.description,
254 podUrl: videoObj.podUrl, 254 podUrl: videoObj.podUrl.replace(/^https?:\/\//, ''),
255 isLocal: videos.getVideoState(videoObj).owned, 255 isLocal: videos.getVideoState(videoObj).owned,
256 magnetUri: videoObj.magnetUri, 256 magnetUri: videoObj.magnetUri,
257 author: videoObj.author, 257 author: videoObj.author,