Fix relay sitemap after the /r/... switch

This commit is contained in:
Daniele Tonon
2023-07-31 16:37:41 +02:00
parent 3b2fae5e5d
commit 903bcc1712
3 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ func renderRelayPage(w http.ResponseWriter, r *http.Request) {
hostname := code[2:]
typ := "relay"
if strings.HasSuffix(hostname, ".xml") {
hostname = code[:len(hostname)-4]
hostname = hostname[:len(hostname)-4]
typ = "relay_sitemap"
}