when deleting honk, delete old revs
Ted Unangst tedu@tedunangst.com
Sun, 06 Oct 2019 22:53:58 -0400
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
database.go
→
database.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) }