alotta good shit
This commit is contained in:
@@ -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 || ''; };
|
||||
|
||||
Reference in New Issue
Block a user