mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-05 11:12:56 +00:00
hot fix #1
This commit is contained in:
@@ -65,6 +65,15 @@ func ProcessFACRLogo(src string) (string, error) {
|
||||
if u == "" {
|
||||
return "", fmt.Errorf("empty url")
|
||||
}
|
||||
// In manual club data mode we avoid any remote FACR/fotbal.cz processing and
|
||||
// return the original URL unchanged so that LogoAPI/manual overrides can be
|
||||
// applied on the frontend without additional HTTP calls.
|
||||
if config.AppConfig != nil {
|
||||
mode := strings.ToLower(strings.TrimSpace(config.AppConfig.ClubDataMode))
|
||||
if mode == "manual" {
|
||||
return u, nil
|
||||
}
|
||||
}
|
||||
// Feature flag: allow disabling background removal entirely via .env
|
||||
if config.AppConfig != nil && !config.AppConfig.RembgEnabled {
|
||||
// Simply return the original URL (no processing)
|
||||
|
||||
Reference in New Issue
Block a user