X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fstatic.ts;h=e6a0628e68b9de16d9fa74b16ee008d56fce45dd;hb=cdeddff142fd20f8cb8bb346625909d61c596603;hp=7cc7f2c62c2c7d18f7fb41d129a844f9f3c093aa;hpb=90a8bd305de4153ec21137a73ff482dcc2e3e19b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 7cc7f2c62..e6a0628e6 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts @@ -34,6 +34,7 @@ staticRouter.use(cors()) */ // FIXME: deprecated in 3.2, use lazy-statics instead +// Due to historical reasons, we can't really remove this controller const torrentsPhysicalPath = CONFIG.STORAGE.TORRENTS_DIR staticRouter.use( STATIC_PATHS.TORRENTS, @@ -251,9 +252,9 @@ async function generateNodeinfo (req: express.Request, res: express.Response) { avatar: { file: { size: { - max: CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max + max: CONSTRAINTS_FIELDS.ACTORS.IMAGE.FILE_SIZE.max }, - extensions: CONSTRAINTS_FIELDS.ACTORS.AVATAR.EXTNAME + extensions: CONSTRAINTS_FIELDS.ACTORS.IMAGE.EXTNAME } }, video: {