all repos — honk @ 5a2b16a805bee96b76c9075e9f6571955cd9b679

my fork of honk

a few fixes for hashtag honkers
Ted Unangst tedu@tedunangst.com
Sun, 27 Oct 2019 01:02:50 -0400
commit

5a2b16a805bee96b76c9075e9f6571955cd9b679

parent

526c2ef45b0142a38c78fa2e848cc1abd2573181

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M web.goweb.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)