aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-01 17:02:52 +0200
committerChocobozzz <me@florianbigard.com>2020-04-01 17:02:52 +0200
commit93708d4e402901635c6f8b6d59bc1fa607dd99ad (patch)
tree9801f680a05866cba77dfa68be6e967768209950 /server
parent45c6bcf312d2e9578501eaaf7511183bc570fe91 (diff)
downloadPeerTube-93708d4e402901635c6f8b6d59bc1fa607dd99ad.tar.gz
PeerTube-93708d4e402901635c6f8b6d59bc1fa607dd99ad.tar.zst
PeerTube-93708d4e402901635c6f8b6d59bc1fa607dd99ad.zip
Fix sitemap
Diffstat (limited to 'server')
-rw-r--r--server/controllers/bots.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/bots.ts b/server/controllers/bots.ts
index 541b40e8e..8d1fa72f3 100644
--- a/server/controllers/bots.ts
+++ b/server/controllers/bots.ts
@@ -35,8 +35,8 @@ async function getSitemap (req: express.Request, res: express.Response) {
35 35
36 const sitemapStream = new SitemapStream({ hostname: WEBSERVER.URL }) 36 const sitemapStream = new SitemapStream({ hostname: WEBSERVER.URL })
37 37
38 for (const url of urls) { 38 for (const urlObj of urls) {
39 sitemapStream.write({ url }) 39 sitemapStream.write(urlObj)
40 } 40 }
41 sitemapStream.end() 41 sitemapStream.end()
42 42