Add profile photo uploads and custom difficulty support
This commit is contained in:
@@ -234,7 +234,11 @@ export async function deploy(
|
||||
const files = [];
|
||||
for (const file of payload.files) {
|
||||
const data = Buffer.from(file.data || "", "base64");
|
||||
if (file.encoding !== "base64" || data.length <= 10 * 1024 * 1024) {
|
||||
const isDesktopReleasePart = file.file.startsWith(".desktop-release/part-");
|
||||
if (
|
||||
file.encoding !== "base64" ||
|
||||
(data.length <= 10 * 1024 * 1024 && !isDesktopReleasePart)
|
||||
) {
|
||||
files.push(file);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user