Fix overview cache
authorChocobozzz <me@florianbigard.com>
Mon, 3 Sep 2018 16:14:05 +0000 (18:14 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 4 Sep 2018 06:58:33 +0000 (08:58 +0200)
server/controllers/api/overviews.ts

index 56f921ce5434cc8d4488aba026f52f328fde5467..da941c0ac7a86030378199d0d16512c8c259dbd4 100644 (file)
@@ -1,7 +1,7 @@
 import * as express from 'express'
 import { buildNSFWFilter } from '../../helpers/express-utils'
 import { VideoModel } from '../../models/video/video'
-import { asyncMiddleware, executeIfActivityPub } from '../../middlewares'
+import { asyncMiddleware } from '../../middlewares'
 import { TagModel } from '../../models/video/tag'
 import { VideosOverview } from '../../../shared/models/overviews'
 import { OVERVIEWS, ROUTE_CACHE_LIFETIME } from '../../initializers'
@@ -10,7 +10,7 @@ import { cacheRoute } from '../../middlewares/cache'
 const overviewsRouter = express.Router()
 
 overviewsRouter.get('/videos',
-  executeIfActivityPub(asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS))),
+  asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS)),
   asyncMiddleware(getVideosOverview)
 )