X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fbots.ts;h=9e92063d4ecf1be651ece80990ef35a845b38c62;hb=12edc1495a36b2199f1bf1ba37f50c7b694be382;hp=541b40e8e200bcbb5d6fbf1deea944a538a6fb60;hpb=d96994289b24c4bbd056660c5fe11fff0f77635e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/bots.ts b/server/controllers/bots.ts index 541b40e8e..9e92063d4 100644 --- a/server/controllers/bots.ts +++ b/server/controllers/bots.ts @@ -35,8 +35,8 @@ async function getSitemap (req: express.Request, res: express.Response) { const sitemapStream = new SitemapStream({ hostname: WEBSERVER.URL }) - for (const url of urls) { - sitemapStream.write({ url }) + for (const urlObj of urls) { + sitemapStream.write(urlObj) } sitemapStream.end() @@ -75,7 +75,7 @@ async function getSitemapLocalVideoUrls () { }) return data.map(v => ({ - url: WEBSERVER.URL + '/videos/watch/' + v.uuid, + url: WEBSERVER.URL + '/w/' + v.uuid, video: [ { title: v.name,