diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/feeds/comment-feeds.ts | 4 | ||||
-rw-r--r-- | server/controllers/feeds/video-feeds.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/feeds/comment-feeds.ts b/server/controllers/feeds/comment-feeds.ts index 68dc9ef90..c013662ea 100644 --- a/server/controllers/feeds/comment-feeds.ts +++ b/server/controllers/feeds/comment-feeds.ts | |||
@@ -8,7 +8,7 @@ import { | |||
8 | feedsFormatValidator, | 8 | feedsFormatValidator, |
9 | setFeedFormatContentType, | 9 | setFeedFormatContentType, |
10 | videoCommentsFeedsValidator, | 10 | videoCommentsFeedsValidator, |
11 | videoFeedsValidator | 11 | feedsAccountOrChannelFiltersValidator |
12 | } from '../../middlewares' | 12 | } from '../../middlewares' |
13 | import { VideoCommentModel } from '../../models/video/video-comment' | 13 | import { VideoCommentModel } from '../../models/video/video-comment' |
14 | import { buildFeedMetadata, initFeed, sendFeed } from './shared' | 14 | import { buildFeedMetadata, initFeed, sendFeed } from './shared' |
@@ -27,7 +27,7 @@ commentFeedsRouter.get('/video-comments.:format', | |||
27 | feedsFormatValidator, | 27 | feedsFormatValidator, |
28 | setFeedFormatContentType, | 28 | setFeedFormatContentType, |
29 | cacheRouteMiddleware(ROUTE_CACHE_LIFETIME.FEEDS), | 29 | cacheRouteMiddleware(ROUTE_CACHE_LIFETIME.FEEDS), |
30 | asyncMiddleware(videoFeedsValidator), | 30 | asyncMiddleware(feedsAccountOrChannelFiltersValidator), |
31 | asyncMiddleware(videoCommentsFeedsValidator), | 31 | asyncMiddleware(videoCommentsFeedsValidator), |
32 | asyncMiddleware(generateVideoCommentsFeed) | 32 | asyncMiddleware(generateVideoCommentsFeed) |
33 | ) | 33 | ) |
diff --git a/server/controllers/feeds/video-feeds.ts b/server/controllers/feeds/video-feeds.ts index 97ac594ec..e5941be40 100644 --- a/server/controllers/feeds/video-feeds.ts +++ b/server/controllers/feeds/video-feeds.ts | |||
@@ -12,7 +12,7 @@ import { | |||
12 | feedsFormatValidator, | 12 | feedsFormatValidator, |
13 | setDefaultVideosSort, | 13 | setDefaultVideosSort, |
14 | setFeedFormatContentType, | 14 | setFeedFormatContentType, |
15 | videoFeedsValidator, | 15 | feedsAccountOrChannelFiltersValidator, |
16 | videosSortValidator, | 16 | videosSortValidator, |
17 | videoSubscriptionFeedsValidator | 17 | videoSubscriptionFeedsValidator |
18 | } from '../../middlewares' | 18 | } from '../../middlewares' |
@@ -33,7 +33,7 @@ videoFeedsRouter.get('/videos.:format', | |||
33 | setFeedFormatContentType, | 33 | setFeedFormatContentType, |
34 | cacheRouteMiddleware(ROUTE_CACHE_LIFETIME.FEEDS), | 34 | cacheRouteMiddleware(ROUTE_CACHE_LIFETIME.FEEDS), |
35 | commonVideosFiltersValidator, | 35 | commonVideosFiltersValidator, |
36 | asyncMiddleware(videoFeedsValidator), | 36 | asyncMiddleware(feedsAccountOrChannelFiltersValidator), |
37 | asyncMiddleware(generateVideoFeed) | 37 | asyncMiddleware(generateVideoFeed) |
38 | ) | 38 | ) |
39 | 39 | ||