Partnet + Discover fix and join

This commit is contained in:
Featyre
2022-01-24 22:59:14 +08:00
parent 5e868d431b
commit cc492f07dc
8 changed files with 105 additions and 9 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ const normalizeBody = (body: any = {}) => {
} else {
for (const [key, value] of Object.entries(object)) {
if (value == null) {
if (key === "icon" || key === "avatar" || key === "banner" || key === "splash") continue;
if (key === "icon" || key === "avatar" || key === "banner" || key === "splash" || key === "discovery_splash") continue;
delete object[key];
} else if (typeof value === "object") {
normalizeObject(value);