hotAdd size limit

This commit is contained in:
Histmy 2023-09-01 17:33:38 +02:00
parent 0a700e6f94
commit e9d1844624
Signed by untrusted user who does not match committer: Histmy
GPG Key ID: AC2E43C463D8F329

View File

@ -22,6 +22,7 @@ const exp: Modul = {
if (!soubor) return "tak pico ael na co"; if (!soubor) return "tak pico ael na co";
if (!formaty.includes(soubor.name.slice(-3))) return "tuten format nechcy"; if (!formaty.includes(soubor.name.slice(-3))) return "tuten format nechcy";
if (soubor.size > 2e6) return "min nes dva mebagajyt pls";
const zaklad = `${kmenovaCesta}/${mes.author.id}`; const zaklad = `${kmenovaCesta}/${mes.author.id}`;
for (const format of formaty) { for (const format of formaty) {