Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix comments feed

Chocobozzz65d2ae2a61df
diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts
index 104fd5dd97..ba5a476e7a 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,