X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Fcontrollers%2Ffeeds.ts;h=cb82bfc6d2185f8bee5e076c698f9df325640349;hb=68b6fd21b19ef17274e84dbb21ad7cfb7bc6c36a;hp=72628dffb94bc3d26a919a2971e44e3bc3d46965;hpb=b3af2601da92a6c0835cb2473b4c7a41a0d86e98;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts index 72628dffb..cb82bfc6d 100644 --- a/server/controllers/feeds.ts +++ b/server/controllers/feeds.ts @@ -67,7 +67,7 @@ async function generateVideoCommentsFeed (req: express.Request, res: express.Res const feed = initFeed(name, description) // Adding video items to the feed, one at a time - comments.forEach(comment => { + for (const comment of comments) { const link = WEBSERVER.URL + comment.getCommentStaticPath() let title = comment.Video.name @@ -89,7 +89,7 @@ async function generateVideoCommentsFeed (req: express.Request, res: express.Res author, date: comment.createdAt }) - }) + } // Now the feed generation is done, let's send it! return sendFeed(feed, req, res)