X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Foverviews.ts;h=37ac152dbe5ee2f47f28da27fc2fa86df3e07ce3;hb=bc01017be99c8d8390f45f82e97ed506b9f1b6a6;hp=8b67730565d99224d68d290e3b0e99ad24e4a18f;hpb=4b5384f6e7be62d072d21d8d964951ba572ab10e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/api/overviews.ts b/server/controllers/api/overviews.ts index 8b6773056..37ac152db 100644 --- a/server/controllers/api/overviews.ts +++ b/server/controllers/api/overviews.ts @@ -4,7 +4,7 @@ import { VideoModel } from '../../models/video/video' import { asyncMiddleware } from '../../middlewares' import { TagModel } from '../../models/video/tag' import { VideosOverview } from '../../../shared/models/overviews' -import { MEMOIZE_TTL, OVERVIEWS, ROUTE_CACHE_LIFETIME } from '../../initializers' +import { MEMOIZE_TTL, OVERVIEWS, ROUTE_CACHE_LIFETIME } from '../../initializers/constants' import { cacheRoute } from '../../middlewares/cache' import * as memoizee from 'memoizee' @@ -94,7 +94,7 @@ async function getVideos ( ) { const query = Object.assign({ start: 0, - count: 10, + count: 12, sort: '-createdAt', includeLocalVideos: true, nsfw: buildNSFWFilter(res),