This commit is contained in:
6543 2022-11-07 22:49:46 +01:00
parent 70871e77be
commit a03ea956d5
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import (
"strings"
"time"
"github.com/rs/zerolog/log"
"codeberg.org/codeberg/pages/server/cache"
"codeberg.org/codeberg/pages/server/gitea"
)
@ -42,6 +44,8 @@ func CheckCanonicalDomain(giteaClient *gitea.Client, targetOwner, targetRepo, ta
valid = true
}
}
} else {
log.Info().Err(err).Msgf("could not read %s of %s/%s", canonicalDomainConfig, targetOwner, targetRepo)
}
domains = append(domains, targetOwner+mainDomainSuffix)
if domains[len(domains)-1] == actualDomain {