Avatar upload restriction has been finalized! Update your Config.toml!!!

This commit is contained in:
Shiroyasha 2024-09-21 16:25:35 +03:00
parent 0103c31d69
commit 7196c719e2
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
5 changed files with 18 additions and 7 deletions

View file

@ -143,4 +143,8 @@ pub fn get_log_file(folder: &str) -> String {
}
index += 1;
}
}
pub fn get_limit_as_bytes(limit: usize) -> usize {
1024 + limit * 1024 // Adding additional 1 KB just for fun :)
}