all repos — honk @ e8a291302f6a296a1e377dea15ad14ca76e51413

my fork of honk

the trouble with liking things is you change your mind and then
my log fills up with undo commands
Ted Unangst tedu@tedunangst.com
Sat, 20 Apr 2019 11:50:01 -0400
commit

e8a291302f6a296a1e377dea15ad14ca76e51413

parent

8f213e7dbd129740dffce84ab2d3cad6c1d34185

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

jump to
M honk.gohonk.go

@@ -346,12 +346,14 @@ if !ok {

log.Printf("unknown undo no object") } else { what, _ := jsongetstring(obj, "type") - if what != "Follow" { - log.Printf("unknown undo: %s", what) - } else { + 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) + case "Like": + default: + log.Printf("unknown undo: %s", what) } } default: