diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-21 15:05:29 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-21 15:05:29 +0200 |
commit | 9e379c835c2badfe8e9088e25870af0a6a8c4d40 (patch) | |
tree | 0c0b1d08aee456a04daec194eb522a2d4588cbf8 /server/controllers | |
parent | f1f4732f8ef20b1c33058b9b2c486d4b5e87b646 (diff) | |
download | PeerTube-9e379c835c2badfe8e9088e25870af0a6a8c4d40.tar.gz PeerTube-9e379c835c2badfe8e9088e25870af0a6a8c4d40.tar.zst PeerTube-9e379c835c2badfe8e9088e25870af0a6a8c4d40.zip |
Don't send the "http(s)" for the podUrl
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/v1/videos.js | 2 |
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, |