From 65d2ae2a61df283e1ca7b1e1645cb5fe8ac47504 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Dec 2019 08:45:52 +0100 Subject: [PATCH] Fix comments feed --- server/controllers/feeds.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,