all repos — honk @ c5c3514e481fc3abfd2fafc20588f76180116999

my fork of honk

some people are determined to fill my database with tombstones,
so only save zonk if we deleted something
Ted Unangst tedu@tedunangst.com
Mon, 31 Jul 2023 22:54:53 -0400
commit

c5c3514e481fc3abfd2fafc20588f76180116999

parent

d4e657a181d53050ee79211ea390555a81627a8b

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

jump to
M activity.goactivity.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) + } } }