all repos — honk @ 28ead20c47da900447c5b49e00429eca2a12919d

my fork of honk

when deleting honk, delete old revs
Ted Unangst tedu@tedunangst.com
Sun, 06 Oct 2019 22:53:58 -0400
commit

28ead20c47da900447c5b49e00429eca2a12919d

parent

a1a0214ba223c2633d397a6493252f32d8494cc8

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

jump to
M database.godatabase.go

@@ -394,7 +394,11 @@ }

func deletehonk(honkid int64) { deleteextras(honkid) - _, err := stmtDeleteHonk.Exec(honkid) + _, err := stmtDeleteMeta.Exec(honkid, "nonsense") + if err != nil { + log.Printf("error deleting: %s", err) + } + _, err = stmtDeleteHonk.Exec(honkid) if err != nil { log.Printf("error deleting: %s", err) }