diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-01 17:02:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-01 17:02:52 +0200 |
commit | 93708d4e402901635c6f8b6d59bc1fa607dd99ad (patch) | |
tree | 9801f680a05866cba77dfa68be6e967768209950 /server | |
parent | 45c6bcf312d2e9578501eaaf7511183bc570fe91 (diff) | |
download | PeerTube-93708d4e402901635c6f8b6d59bc1fa607dd99ad.tar.gz PeerTube-93708d4e402901635c6f8b6d59bc1fa607dd99ad.tar.zst PeerTube-93708d4e402901635c6f8b6d59bc1fa607dd99ad.zip |
Fix sitemap
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/bots.ts | 4 |
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 | ||