Fix comments feed
This commit is contained in:
parent
3cf53828db
commit
65d2ae2a61
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue