mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-02 20:54:30 +01:00
fix /r/ with empty relay url.
This commit is contained in:
@@ -29,6 +29,11 @@ func renderRelayPage(w http.ResponseWriter, r *http.Request) {
|
||||
isRSS = true
|
||||
}
|
||||
|
||||
if len(hostname) < 3 {
|
||||
http.Redirect(w, r, "/", http.StatusFound)
|
||||
return
|
||||
}
|
||||
|
||||
// relay metadata
|
||||
info, _ := nip11.Fetch(r.Context(), hostname)
|
||||
if info.Name == "" {
|
||||
|
||||
Reference in New Issue
Block a user