Phase 13, part 6: each team's Core
On the server and multi-tenant editions a team's admin enters its Core's domain and account under Settings → Core & Hermes, instead of core.conf; Hermes connects from the team's side with an agent's key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,8 +26,8 @@ func (s *Server) giteaURL() string {
|
||||
if _, err := s.DB.GetJSON(giteaURLKey, &u); err == nil && u != "" {
|
||||
return u
|
||||
}
|
||||
if s.Core != nil && s.Core.Domain != "" {
|
||||
return "https://gitea." + s.Core.Domain
|
||||
if s.core() != nil && s.core().Domain != "" {
|
||||
return "https://gitea." + s.core().Domain
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@@ -53,14 +53,14 @@ func (s *Server) applier(site seoSite) *seo.Applier {
|
||||
// commitAuthor is who Supermarket's commits are by: the Core's user, via
|
||||
// Supermarket.
|
||||
func (s *Server) commitAuthor() string {
|
||||
if s.Core != nil && s.Core.Email != "" {
|
||||
name := s.Core.Name
|
||||
if s.core() != nil && s.core().Email != "" {
|
||||
name := s.core().Name
|
||||
if name == "" {
|
||||
name = "Supermarket"
|
||||
} else {
|
||||
name += " (via Supermarket)"
|
||||
}
|
||||
return name + " <" + s.Core.Email + ">"
|
||||
return name + " <" + s.core().Email + ">"
|
||||
}
|
||||
return "Supermarket <supermarket@localhost>"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user