ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix comments feed
Chocobozzzc33409773436
diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.tsindex ba5a476e7a..fa6c7ac714 100644--- a/server/controllers/feeds.ts+++ b/server/controllers/feeds.ts@@ -57,19 +57,22 @@ async function generateVideoCommentsFeed (req: express.Request, res: express.Resconst link = WEBSERVER.URL + comment.getCommentStaticPath()let title = comment.Video.name- if (comment.Account) title += ` - ${comment.Account.getDisplayName()}`+ const author: { name: string, link: string }[] = []++ if (comment.Account) {+ title += ` - ${comment.Account.getDisplayName()}`+ author.push({+ name: comment.Account.getDisplayName(),+ link: comment.Account.Actor.url+ })+ }feed.addItem({title,id: comment.url,link,content: comment.text,- author: [- {- name: comment.Account.getDisplayName(),- link: comment.Account.Actor.url- }- ],+ author,date: comment.createdAt})})