all repos — honk @ d2a62e2973d7b73505635bdb170a5abaf34014ce

my fork of honk

make sure to update the right honker
Ted Unangst tedu@tedunangst.com
Fri, 26 Apr 2019 16:27:29 -0400
commit

d2a62e2973d7b73505635bdb170a5abaf34014ce

parent

e1a7b2e5608ca302ff46b6412ba7e26c059bfcf6

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

jump to
M honk.gohonk.go

@@ -348,7 +348,7 @@ }

case "Accept": db := opendatabase() log.Printf("updating honker accept: %s", who) - db.Exec("update honkers set flavor = 'sub' where xid = ? and flavor = 'presub'", who) + db.Exec("update honkers set flavor = 'sub' where userid = ? and xid = ? and flavor = 'presub'", user.ID, who) case "Undo": obj, ok := jsongetmap(j, "object") if !ok {

@@ -359,7 +359,7 @@ switch what {

case "Follow": log.Printf("updating honker undo: %s", who) db := opendatabase() - db.Exec("update honkers set flavor = 'undub' where xid = ? and flavor = 'dub'", who) + db.Exec("update honkers set flavor = 'undub' where userid = ? and xid = ? and flavor = 'dub'", user.ID, who) case "Like": default: log.Printf("unknown undo: %s", what)