X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fstatic.ts;h=a6b46244379bcfc0af5b490d0fbb63e07540c75d;hb=e0ce715a1ded6e84c877004dae3e354c8716fb06;hp=73951be2d4b3ff0cc9a1283f276365a31754d827;hpb=3ddb1ec5553167b0b1cb852e906a691ea65522a4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 73951be2d..a6b462443 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts @@ -158,7 +158,7 @@ staticRouter.use('/.well-known/change-password', staticRouter.use('/.well-known/host-meta', (_, res: express.Response) => { - res.type('application/xml'); + res.type('application/xml') const xml = '\n' + '\n' + @@ -194,7 +194,7 @@ async function getVideoCaption (req: express.Request, res: express.Response) { return res.sendFile(result.path, { maxAge: STATIC_MAX_AGE }) } -async function generateNodeinfo (req: express.Request, res: express.Response, next: express.NextFunction) { +async function generateNodeinfo (req: express.Request, res: express.Response) { const { totalVideos } = await VideoModel.getStats() const { totalLocalVideoComments } = await VideoCommentModel.getStats() const { totalUsers } = await UserModel.getStats()