From 558187a72fc75b22f762af7b6608d15b2420f8df Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Sep 2018 18:14:05 +0200 Subject: Fix overview cache --- server/controllers/api/overviews.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/controllers/api') diff --git a/server/controllers/api/overviews.ts b/server/controllers/api/overviews.ts index 56f921ce5..da941c0ac 100644 --- a/server/controllers/api/overviews.ts +++ b/server/controllers/api/overviews.ts @@ -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) ) -- cgit v1.2.3