diff options
Diffstat (limited to 'server/controllers/feeds.ts')
-rw-r--r-- | server/controllers/feeds.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts index f0717bbbc..435b12193 100644 --- a/server/controllers/feeds.ts +++ b/server/controllers/feeds.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import * as Feed from 'pfeed' | 2 | import * as Feed from 'pfeed' |
3 | import { getCategoryLabel } from '@server/models/video/formatter/video-format-utils' | ||
3 | import { VideoFilter } from '../../shared/models/videos/video-query.type' | 4 | import { VideoFilter } from '../../shared/models/videos/video-query.type' |
4 | import { buildNSFWFilter } from '../helpers/express-utils' | 5 | import { buildNSFWFilter } from '../helpers/express-utils' |
5 | import { CONFIG } from '../initializers/config' | 6 | import { CONFIG } from '../initializers/config' |
@@ -286,14 +287,14 @@ function addVideosToFeed (feed, videos: VideoModel[]) { | |||
286 | if (video.category) { | 287 | if (video.category) { |
287 | categories.push({ | 288 | categories.push({ |
288 | value: video.category, | 289 | value: video.category, |
289 | label: VideoModel.getCategoryLabel(video.category) | 290 | label: getCategoryLabel(video.category) |
290 | }) | 291 | }) |
291 | } | 292 | } |
292 | 293 | ||
293 | feed.addItem({ | 294 | feed.addItem({ |
294 | title: video.name, | 295 | title: video.name, |
295 | id: video.url, | 296 | id: video.url, |
296 | link: WEBSERVER.URL + '/videos/watch/' + video.uuid, | 297 | link: WEBSERVER.URL + '/w/' + video.uuid, |
297 | description: video.getTruncatedDescription(), | 298 | description: video.getTruncatedDescription(), |
298 | content: video.description, | 299 | content: video.description, |
299 | author: [ | 300 | author: [ |