aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/controllers/feeds.ts5
1 files changed, 4 insertions, 1 deletions
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
56 comments.forEach(comment => { 56 comments.forEach(comment => {
57 const link = WEBSERVER.URL + comment.getCommentStaticPath() 57 const link = WEBSERVER.URL + comment.getCommentStaticPath()
58 58
59 let title = comment.Video.name
60 if (comment.Account) title += ` - ${comment.Account.getDisplayName()}`
61
59 feed.addItem({ 62 feed.addItem({
60 title: `${comment.Video.name} - ${comment.Account.getDisplayName()}`, 63 title,
61 id: comment.url, 64 id: comment.url,
62 link, 65 link,
63 content: comment.text, 66 content: comment.text,