]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/bots.ts
Introduce comments command
[github/Chocobozzz/PeerTube.git] / server / controllers / bots.ts
index 541b40e8e200bcbb5d6fbf1deea944a538a6fb60..9e92063d4ecf1be651ece80990ef35a845b38c62 100644 (file)
@@ -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,