Fix comments feed

pull/2330/head
Chocobozzz 2019-12-10 08:45:52 +01:00
parent 3cf53828db
commit 65d2ae2a61
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -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,