From: Chocobozzz Date: Wed, 1 Apr 2020 15:02:52 +0000 (+0200) Subject: Fix sitemap X-Git-Tag: v2.2.0-rc.1~314 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93708d4e402901635c6f8b6d59bc1fa607dd99ad;p=oweals%2Fpeertube.git Fix sitemap --- 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) { 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()