all repos — honk @ f15436ffe9fa689514c8d37bff2d94029a8fe584

my fork of honk

fix a few queries missing new argument
Ted Unangst tedu@tedunangst.com
Mon, 28 Oct 2019 14:58:18 -0400
commit

f15436ffe9fa689514c8d37bff2d94029a8fe584

parent

7f1027d46cc6849c34ab4627296604c4818af8ed

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

jump to
M web.goweb.go

@@ -355,7 +355,7 @@ var x string

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 @@ what, _ := obj.GetString("type")

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 @@ return

} 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