From: Chocobozzz Date: Sat, 21 May 2016 13:05:29 +0000 (+0200) Subject: Don't send the "http(s)" for the podUrl X-Git-Tag: v0.0.1-alpha~910 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9e379c835c2badfe8e9088e25870af0a6a8c4d40;p=github%2FChocobozzz%2FPeerTube.git Don't send the "http(s)" for the podUrl --- 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) { id: videoObj._id, name: videoObj.name, description: videoObj.description, - podUrl: videoObj.podUrl, + podUrl: videoObj.podUrl.replace(/^https?:\/\//, ''), isLocal: videos.getVideoState(videoObj).owned, magnetUri: videoObj.magnetUri, author: videoObj.author,