]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/static.ts
Check latest plugins version
[github/Chocobozzz/PeerTube.git] / server / controllers / static.ts
index 73951be2d4b3ff0cc9a1283f276365a31754d827..a6b46244379bcfc0af5b490d0fbb63e07540c75d 100644 (file)
@@ -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 = '<?xml version="1.0" encoding="UTF-8"?>\n' +
       '<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">\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()