From 7eee7d760025081eb6657de6f089c14781997782 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 30 Oct 2019 17:31:48 -0400 Subject: [PATCH] check for the dreaded double bonk --- web.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web.go b/web.go index c836dcc..8c83a95 100644 --- a/web.go +++ b/web.go @@ -972,6 +972,9 @@ func submitbonk(w http.ResponseWriter, r *http.Request) { if !xonk.Public { return } + if xonk.IsBonked() { + return + } donksforhonks([]*Honk{xonk}) _, err := stmtUpdateFlags.Exec(flagIsBonked, xonk.ID)