projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf5382
)
Fix comments feed
author
Chocobozzz
<me@florianbigard.com>
Tue, 10 Dec 2019 07:45:52 +0000
(08:45 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Tue, 10 Dec 2019 07:45:52 +0000
(08:45 +0100)
server/controllers/feeds.ts
patch
|
blob
|
history
diff --git
a/server/controllers/feeds.ts
b/server/controllers/feeds.ts
index 104fd5dd97508007746276c6949da5efbf825c1a..ba5a476e7acbc7831137d109902cd161acd010ad 100644
(file)
--- 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,