diff --git a/web.go b/web.go index fefc55c..197cd88 100644 --- a/web.go +++ b/web.go @@ -1954,7 +1954,8 @@ func submithonker(w http.ResponseWriter, r *http.Request) *Honker { flavor = "peep" } - id, err := savehonker(user, url, name, flavor, combos, mj) + var err error + honkerid, err = savehonker(user, url, name, flavor, combos, mj) if err != nil { http.Error(w, "had some trouble with that: "+err.Error(), http.StatusInternalServerError) return nil @@ -1962,7 +1963,7 @@ func submithonker(w http.ResponseWriter, r *http.Request) *Honker { if flavor == "presub" { followyou(user, honkerid, false) } - h.ID = id + h.ID = honkerid return h }