Phase 13, part 4: proving a team's domain

Before Supermarket crawls a team's website, reads its Search Console data
or publishes to it, the team proves the domain is theirs: a DNS TXT
record, a file on the site, or owning its Search Console property. One
team holds a domain at a time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:21:42 -07:00
co-authored by Claude Opus 5.5
parent d5fb1898e8
commit 47cc8b2b10
11 changed files with 444 additions and 8 deletions
+3
View File
@@ -185,6 +185,9 @@ func (s *Server) carryOut(ctx context.Context, r *approvals.Request, as *viewer)
}
return "added to the mailing list", nil
case "seo-change":
if !s.domainProved() {
return "", errors.New("the team hasn't proved its domain yet (Settings → Domain)")
}
if s.gitea() == nil {
return "", errors.New("Gitea isn't connected (Settings → Search engines)")
}