From: Chocobozzz Date: Tue, 10 Dec 2019 07:45:52 +0000 (+0100) Subject: Fix comments feed X-Git-Tag: v2.1.0-rc.1~236 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=65d2ae2a61df283e1ca7b1e1645cb5fe8ac47504;p=oweals%2Fpeertube.git Fix comments feed --- diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts index 104fd5dd9..ba5a476e7 100644 --- a/server/controllers/feeds.ts +++ b/server/controllers/feeds.ts @@ -56,8 +56,11 @@ async function generateVideoCommentsFeed (req: express.Request, res: express.Res comments.forEach(comment => { const link = WEBSERVER.URL + comment.getCommentStaticPath() + let title = comment.Video.name + if (comment.Account) title += ` - ${comment.Account.getDisplayName()}` + feed.addItem({ - title: `${comment.Video.name} - ${comment.Account.getDisplayName()}`, + title, id: comment.url, link, content: comment.text,