use new nostr-sdk with hints (full outbox) support for improved event fetching that hopefully works.

This commit is contained in:
fiatjaf
2024-07-27 22:58:10 -03:00
parent 0113da6120
commit 56b3919d4e
10 changed files with 177 additions and 182 deletions

View File

@@ -12,7 +12,7 @@ func renderRelayPage(w http.ResponseWriter, r *http.Request) {
hostname := r.URL.Path[3:]
if strings.HasPrefix(hostname, "wss:/") || strings.HasPrefix(hostname, "ws:/") {
hostname = trimProtocol(hostname)
hostname = trimProtocolAndEndingSlash(hostname)
http.Redirect(w, r, "/r/"+hostname, http.StatusFound)
return
}