aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-10 08:45:52 +0100
committerChocobozzz <me@florianbigard.com>2019-12-10 08:45:52 +0100
commit65d2ae2a61df283e1ca7b1e1645cb5fe8ac47504 (patch)
tree6ca00e829c803de8bc6292f7d815806e3063d275 /server/controllers
parent3cf53828db9b1f0d65e91a07d2a65f2f4ad82270 (diff)
downloadPeerTube-65d2ae2a61df283e1ca7b1e1645cb5fe8ac47504.tar.gz
PeerTube-65d2ae2a61df283e1ca7b1e1645cb5fe8ac47504.tar.zst
PeerTube-65d2ae2a61df283e1ca7b1e1645cb5fe8ac47504.zip
Fix comments feed
Diffstat (limited to 'server/controllers')
-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,