aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/feeds.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts
index 865f5c2a1..435b12193 100644
--- a/server/controllers/feeds.ts
+++ b/server/controllers/feeds.ts
@@ -1,5 +1,6 @@
1import * as express from 'express' 1import * as express from 'express'
2import * as Feed from 'pfeed' 2import * as Feed from 'pfeed'
3import { getCategoryLabel } from '@server/models/video/formatter/video-format-utils'
3import { VideoFilter } from '../../shared/models/videos/video-query.type' 4import { VideoFilter } from '../../shared/models/videos/video-query.type'
4import { buildNSFWFilter } from '../helpers/express-utils' 5import { buildNSFWFilter } from '../helpers/express-utils'
5import { CONFIG } from '../initializers/config' 6import { CONFIG } from '../initializers/config'
@@ -286,7 +287,7 @@ 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