check for the dreaded double bonk

This commit is contained in:
Ted Unangst 2019-10-30 17:31:48 -04:00
parent 40fb10d25a
commit 7eee7d7600
1 changed files with 3 additions and 0 deletions

3
web.go
View File

@ -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)