mirror of https://github.com/Chocobozzz/PeerTube
Fix sitemap
parent
45c6bcf312
commit
93708d4e40
|
@ -35,8 +35,8 @@ async function getSitemap (req: express.Request, res: express.Response) {
|
||||||
|
|
||||||
const sitemapStream = new SitemapStream({ hostname: WEBSERVER.URL })
|
const sitemapStream = new SitemapStream({ hostname: WEBSERVER.URL })
|
||||||
|
|
||||||
for (const url of urls) {
|
for (const urlObj of urls) {
|
||||||
sitemapStream.write({ url })
|
sitemapStream.write(urlObj)
|
||||||
}
|
}
|
||||||
sitemapStream.end()
|
sitemapStream.end()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue