some people are determined to fill my database with tombstones,
so only save zonk if we deleted something
This commit is contained in:
parent
592c189e8b
commit
2e82a931b9
|
@ -315,11 +315,11 @@ func eradicatexonk(userid int64, xid string) {
|
||||||
xonk := getxonk(userid, xid)
|
xonk := getxonk(userid, xid)
|
||||||
if xonk != nil {
|
if xonk != nil {
|
||||||
deletehonk(xonk.ID)
|
deletehonk(xonk.ID)
|
||||||
}
|
|
||||||
_, err := stmtSaveZonker.Exec(userid, xid, "zonk")
|
_, err := stmtSaveZonker.Exec(userid, xid, "zonk")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
elog.Printf("error eradicating: %s", err)
|
elog.Printf("error eradicating: %s", err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func savexonk(x *Honk) {
|
func savexonk(x *Honk) {
|
||||||
|
|
Loading…
Reference in New Issue