aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/feeds.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts
index ece5dc067..ce57e5c11 100644
--- a/server/controllers/feeds.ts
+++ b/server/controllers/feeds.ts
@@ -46,10 +46,12 @@ async function generateVideoCommentsFeed (req: express.Request, res: express.Res
46 46
47 // Adding video items to the feed, one at a time 47 // Adding video items to the feed, one at a time
48 comments.forEach(comment => { 48 comments.forEach(comment => {
49 const link = CONFIG.WEBSERVER.URL + '/videos/watch/' + comment.Video.uuid + ';threadId=' + comment.getThreadId()
50
49 feed.addItem({ 51 feed.addItem({
50 title: `${comment.Video.name} - ${comment.Account.getDisplayName()}`, 52 title: `${comment.Video.name} - ${comment.Account.getDisplayName()}`,
51 id: comment.url, 53 id: comment.url,
52 link: comment.url, 54 link,
53 content: comment.text, 55 content: comment.text,
54 author: [ 56 author: [
55 { 57 {
@@ -111,7 +113,7 @@ async function generateVideoFeed (req: express.Request, res: express.Response, n
111 feed.addItem({ 113 feed.addItem({
112 title: video.name, 114 title: video.name,
113 id: video.url, 115 id: video.url,
114 link: video.url, 116 link: CONFIG.WEBSERVER.URL + '/videos/watch/' + video.uuid,
115 description: video.getTruncatedDescription(), 117 description: video.getTruncatedDescription(),
116 content: video.description, 118 content: video.description,
117 author: [ 119 author: [