fix finding one honk
This commit is contained in:
parent
c7cca54c35
commit
73e5d9ce3a
2
honk.go
2
honk.go
|
@ -459,12 +459,12 @@ func showconvoy(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
func showhonk(w http.ResponseWriter, r *http.Request) {
|
func showhonk(w http.ResponseWriter, r *http.Request) {
|
||||||
name := mux.Vars(r)["name"]
|
name := mux.Vars(r)["name"]
|
||||||
xid := mux.Vars(r)["xid"]
|
|
||||||
user, err := butwhatabout(name)
|
user, err := butwhatabout(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.NotFound(w, r)
|
http.NotFound(w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
xid := fmt.Sprintf("https://%s%s", serverName, r.URL.Path)
|
||||||
h := getxonk(user.ID, xid)
|
h := getxonk(user.ID, xid)
|
||||||
if h == nil {
|
if h == nil {
|
||||||
http.NotFound(w, r)
|
http.NotFound(w, r)
|
||||||
|
|
Loading…
Reference in New Issue