]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/lazy-static.ts
More robust channel change federation
[github/Chocobozzz/PeerTube.git] / server / controllers / lazy-static.ts
index c2f5c7b568781ea51143e50fbb5a1ba3bcd74f58..4e553479b658f109947b7f5196e2d5a1f9a55611 100644 (file)
@@ -94,5 +94,6 @@ async function getTorrent (req: express.Request, res: express.Response) {
   const result = await VideosTorrentCache.Instance.getFilePath(req.params.filename)
   if (!result) return res.sendStatus(HttpStatusCode.NOT_FOUND_404)
 
+  // Torrents still use the old naming convention (video uuid + .torrent)
   return res.sendFile(result.path, { maxAge: STATIC_MAX_AGE.SERVER })
 }