move test down where it belongs

Ted Unangst 5 years ago
parent 33357185cc
commit 3fd473d0cb

@ -1468,11 +1468,6 @@ func submithonker(w http.ResponseWriter, r *http.Request) {
combos = " " + combos + " "
honkerid, _ := strconv.ParseInt(r.FormValue("honkerid"), 10, 0)
if url == "" {
http.Error(w, "subscribing to nothing?", http.StatusInternalServerError)
return
}
defer honkerinvalidator.Clear(u.UserID)
if honkerid > 0 {
@ -1532,6 +1527,11 @@ func submithonker(w http.ResponseWriter, r *http.Request) {
return
}
if url == "" {
http.Error(w, "subscribing to nothing?", http.StatusInternalServerError)
return
}
flavor := "presub"
if peep == "peep" {
flavor = "peep"

Loading…
Cancel
Save