all repos — honk @ 3db87746828ed5a060242a4632496839da4f54c0

my fork of honk

this query should not find bonks, which later causes crashes.
thanks benjojo
Ted Unangst tedu@tedunangst.com
Sat, 15 Jul 2023 18:03:47 -0400
commit

3db87746828ed5a060242a4632496839da4f54c0

parent

fdcf54101259dea279ebab145dcfde6b16cfd8db

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

jump to
M database.godatabase.go

@@ -1149,7 +1149,7 @@ limit := " order by honks.honkid desc limit 250"

smalllimit := " order by honks.honkid desc limit ?" butnotthose := " and convoy not in (select name from zonkers where userid = ? and wherefore = 'zonvoy' order by zonkerid desc limit 100)" stmtOneXonk = preparetodie(db, selecthonks+"where honks.userid = ? and xid = ?") - stmtAnyXonk = preparetodie(db, selecthonks+"where xid = ? order by honks.honkid asc") + stmtAnyXonk = preparetodie(db, selecthonks+"where xid = ? and what <> 'bonk' order by honks.honkid asc") stmtOneBonk = preparetodie(db, selecthonks+"where honks.userid = ? and xid = ? and what = 'bonk' and whofore = 2") stmtPublicHonks = preparetodie(db, selecthonks+"where whofore = 2 and dt > ?"+smalllimit) stmtEventHonks = preparetodie(db, selecthonks+"where (whofore = 2 or honks.userid = ?) and what = 'event'"+smalllimit)