fix(updates): correct infourl/maintainerurl mapping #445

Merged
jmiller merged 1 commits from dev into main 2026-06-03 02:55:37 +00:00
+4 -4
View File
@@ -202,7 +202,9 @@ func GenerateJoomlaXML(ctx context.Context, repo *repo_model.Repository, require
maintainer = cfg.Maintainer
}
maintainerURL := fmt.Sprintf("%s/%s", baseURL, repo.Owner.Name)
if cfg != nil && cfg.MaintainerURL != "" {
if cfg != nil && cfg.SupportURL != "" {
maintainerURL = cfg.SupportURL
} else if cfg != nil && cfg.MaintainerURL != "" {
maintainerURL = cfg.MaintainerURL
}
targetVersion := ".*"
@@ -307,9 +309,7 @@ func GenerateJoomlaXML(ctx context.Context, repo *repo_model.Repository, require
}
infoURL := fmt.Sprintf("%s/releases", repoLink)
if cfg != nil && cfg.SupportURL != "" {
infoURL = cfg.SupportURL
} else if cfg != nil && cfg.InfoURL != "" {
if cfg != nil && cfg.InfoURL != "" {
infoURL = cfg.InfoURL
}