Fix comments feed

This commit is contained in:
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 => { comments.forEach(comment => {
const link = WEBSERVER.URL + comment.getCommentStaticPath() const link = WEBSERVER.URL + comment.getCommentStaticPath()
let title = comment.Video.name
if (comment.Account) title += ` - ${comment.Account.getDisplayName()}`
feed.addItem({ feed.addItem({
title: `${comment.Video.name} - ${comment.Account.getDisplayName()}`, title,
id: comment.url, id: comment.url,
link, link,
content: comment.text, content: comment.text,