From d707dda73c7793faf4802b4c5bda89d4232b17aa Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 28 Oct 2019 14:58:18 -0400 Subject: [PATCH] fix a few queries missing new argument --- web.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web.go b/web.go index 880dcef..001a839 100644 --- a/web.go +++ b/web.go @@ -355,7 +355,7 @@ func inbox(w http.ResponseWriter, r *http.Request) { err = row.Scan(&x) if err != sql.ErrNoRows { log.Printf("duplicate follow request: %s", who) - _, err = stmtUpdateFlavor.Exec("dub", user.ID, who, "undub") + _, err = stmtUpdateFlavor.Exec("dub", user.ID, who, who, "undub") if err != nil { log.Printf("error updating honker: %s", err) } @@ -400,7 +400,7 @@ func inbox(w http.ResponseWriter, r *http.Request) { switch what { case "Follow": log.Printf("updating honker undo: %s", who) - _, err = stmtUpdateFlavor.Exec("undub", user.ID, who, "dub") + _, err = stmtUpdateFlavor.Exec("undub", user.ID, who, who, "dub") if err != nil { log.Printf("error updating honker: %s", err) return @@ -1483,7 +1483,7 @@ func submithonker(w http.ResponseWriter, r *http.Request) { } log.Printf("unsubscribing from %s", url) user, _ := butwhatabout(u.Username) - _, err = stmtUpdateFlavor.Exec("unsub", u.UserID, url, "sub") + _, err = stmtUpdateFlavor.Exec("unsub", u.UserID, url, name, "sub") if err != nil { log.Printf("error updating honker: %s", err) return