X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fexpress-utils.ts;h=9bf6d85a87a21f76338090a551cabb425e4dd463;hb=fbc77eb648bda9add4634c08dbb6af48c3670b5d;hp=00f3f198bc2195087a69333cf4c46ab37f2d204d;hpb=21d141c296541f41e399ec68aa7fa85e53d0dcb8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/express-utils.ts b/server/helpers/express-utils.ts index 00f3f198b..9bf6d85a8 100644 --- a/server/helpers/express-utils.ts +++ b/server/helpers/express-utils.ts @@ -117,6 +117,10 @@ function isUserAbleToSearchRemoteURI (res: express.Response) { (CONFIG.SEARCH.REMOTE_URI.USERS === true && user !== undefined) } +function getCountVideos (req: express.Request) { + return req.query.skipCount !== true +} + // --------------------------------------------------------------------------- export { @@ -125,5 +129,6 @@ export { isUserAbleToSearchRemoteURI, badRequest, createReqFiles, - cleanUpReqFiles + cleanUpReqFiles, + getCountVideos }