move test down where it belongs
This commit is contained in:
parent
c0717679ed
commit
32cb834d45
10
web.go
10
web.go
|
@ -1468,11 +1468,6 @@ func submithonker(w http.ResponseWriter, r *http.Request) {
|
||||||
combos = " " + combos + " "
|
combos = " " + combos + " "
|
||||||
honkerid, _ := strconv.ParseInt(r.FormValue("honkerid"), 10, 0)
|
honkerid, _ := strconv.ParseInt(r.FormValue("honkerid"), 10, 0)
|
||||||
|
|
||||||
if url == "" {
|
|
||||||
http.Error(w, "subscribing to nothing?", http.StatusInternalServerError)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
defer honkerinvalidator.Clear(u.UserID)
|
defer honkerinvalidator.Clear(u.UserID)
|
||||||
|
|
||||||
if honkerid > 0 {
|
if honkerid > 0 {
|
||||||
|
@ -1532,6 +1527,11 @@ func submithonker(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if url == "" {
|
||||||
|
http.Error(w, "subscribing to nothing?", http.StatusInternalServerError)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
flavor := "presub"
|
flavor := "presub"
|
||||||
if peep == "peep" {
|
if peep == "peep" {
|
||||||
flavor = "peep"
|
flavor = "peep"
|
||||||
|
|
Loading…
Reference in New Issue