From 2e82a931b98fdbef0637f3b51e6233e1ab861d21 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 31 Jul 2023 22:54:53 -0400 Subject: [PATCH] some people are determined to fill my database with tombstones, so only save zonk if we deleted something --- activity.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activity.go b/activity.go index f0dd39b..855f087 100644 --- a/activity.go +++ b/activity.go @@ -315,10 +315,10 @@ func eradicatexonk(userid int64, xid string) { xonk := getxonk(userid, xid) if xonk != nil { deletehonk(xonk.ID) - } - _, err := stmtSaveZonker.Exec(userid, xid, "zonk") - if err != nil { - elog.Printf("error eradicating: %s", err) + _, err := stmtSaveZonker.Exec(userid, xid, "zonk") + if err != nil { + elog.Printf("error eradicating: %s", err) + } } }