From ae8d1909d8b939416f7d10a24251b11694a0931e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 17 Mar 2023 14:24:15 -0400 Subject: [PATCH] use the right variable --- web.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }