a few fixes for hashtag honkers
This commit is contained in:
parent
64c45abc74
commit
22ead8823c
7
web.go
7
web.go
|
@ -1468,6 +1468,11 @@ 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,7 +1537,6 @@ func submithonker(w http.ResponseWriter, r *http.Request) {
|
||||||
flavor = "peep"
|
flavor = "peep"
|
||||||
}
|
}
|
||||||
|
|
||||||
// incomplete
|
|
||||||
if url[0] == '#' {
|
if url[0] == '#' {
|
||||||
flavor = "peep"
|
flavor = "peep"
|
||||||
if name == "" {
|
if name == "" {
|
||||||
|
@ -1544,6 +1548,7 @@ func submithonker(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
http.Redirect(w, r, "/honkers", http.StatusSeeOther)
|
http.Redirect(w, r, "/honkers", http.StatusSeeOther)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
info, err := investigate(url)
|
info, err := investigate(url)
|
||||||
|
|
Loading…
Reference in New Issue