fdsafdas
This commit is contained in:
+11
-2
@@ -1939,7 +1939,7 @@ process.on('uncaughtException', err => {
|
||||
upload_limit: cfg.main.upload_limit ?? 69,
|
||||
meme_creator: !!cfg.websrv.meme_creator,
|
||||
custom_favicon: cfg.websrv.custom_favicon || "",
|
||||
custom_brand_image: Array.isArray(cfg.websrv.custom_brand_image) ? cfg.websrv.custom_brand_image[0] : (cfg.websrv.custom_brand_image || ""),
|
||||
get custom_brand_image() { return getBrandImageUrl(); },
|
||||
custom_navbar_brand_text: cfg.websrv.custom_navbar_brand_text || "",
|
||||
default_font: cfg.websrv.default_font || "",
|
||||
site_description: cfg.websrv.description || "The webs dumpster",
|
||||
@@ -1999,7 +1999,16 @@ process.on('uncaughtException', err => {
|
||||
return JSON.stringify(cfg.websrv.koepfe || []);
|
||||
}
|
||||
},
|
||||
custom_brand_images_json: JSON.stringify(getBrandImageUrl() ? [getBrandImageUrl()] : []),
|
||||
get custom_brand_images_json() {
|
||||
const current = getBrandImageUrl();
|
||||
if (current) {
|
||||
if (Array.isArray(cfg.websrv.custom_brand_image) && cfg.websrv.custom_brand_image.length > 1 && cfg.websrv.custom_brand_image.includes(current)) {
|
||||
return JSON.stringify(cfg.websrv.custom_brand_image);
|
||||
}
|
||||
return JSON.stringify([current]);
|
||||
}
|
||||
return JSON.stringify([]);
|
||||
},
|
||||
allowed_comment_images: cfg.websrv.allowed_comment_images || [],
|
||||
allowed_comment_images_json: JSON.stringify(cfg.websrv.allowed_comment_images || []),
|
||||
paths_images: cfg.websrv.paths?.images || '/b',
|
||||
|
||||
Reference in New Issue
Block a user