when deleting honk, delete old revs

This commit is contained in:
Ted Unangst 2019-10-06 22:53:58 -04:00
parent 4059b207a1
commit 27b3b8a7c0
1 changed files with 5 additions and 1 deletions

View File

@ -394,7 +394,11 @@ func deleteextras(honkid int64) {
func deletehonk(honkid int64) { func deletehonk(honkid int64) {
deleteextras(honkid) 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 { if err != nil {
log.Printf("error deleting: %s", err) log.Printf("error deleting: %s", err)
} }