diff --git a/services/updateserver/joomla.go b/services/updateserver/joomla.go index 2513b7bc47..9765eca84d 100644 --- a/services/updateserver/joomla.go +++ b/services/updateserver/joomla.go @@ -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 }