a few fixes for hashtag honkers
Ted Unangst tedu@tedunangst.com
Sun, 27 Oct 2019 01:02:50 -0400
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
web.go
→
web.go
@@ -1468,6 +1468,11 @@ combos := strings.TrimSpace(r.FormValue("combos"))
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,7 +1537,6 @@ if peep == "peep" {
flavor = "peep" } - // incomplete if url[0] == '#' { flavor = "peep" if name == "" {@@ -1544,6 +1548,7 @@ log.Print(err)
return } http.Redirect(w, r, "/honkers", http.StatusSeeOther) + return } info, err := investigate(url)