alotta good shit

This commit is contained in:
2026-09-19 06:20:37 +02:00
parent 74f7884525
commit 1477d56658
45 changed files with 4363 additions and 2069 deletions
+9
View File
@@ -246,3 +246,12 @@ export const setNsfpIds = (ids) => {
cfg.nsfp = [...nsfp_ids];
};
// Brand image URL — stored in site_settings DB, not config.json
// Falls back to cfg.websrv.custom_brand_image (array or string) on first boot
let brand_image_url = (() => {
const raw = cfg.websrv?.custom_brand_image;
return Array.isArray(raw) ? (raw[0] || '') : (raw || '');
})();
export const getBrandImageUrl = () => brand_image_url;
export const setBrandImageUrl = (val) => { brand_image_url = val || ''; };