all repos — honk @ 0b859c69033232e8edfa7813a5c5f34def28ef2b

my fork of honk

include oonker in the xonker query...
Ted Unangst tedu@tedunangst.com
Tue, 09 Jul 2019 23:43:46 -0400
commit

0b859c69033232e8edfa7813a5c5f34def28ef2b

parent

77d556a5dab17bef18326bc894fb1dd52a7812ba

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

jump to
M honk.gohonk.go

@@ -760,7 +760,7 @@ rows, err := stmtHonksByHonker.Query(userid, honker, userid)

return getsomehonks(rows, err) } func gethonksbyxonker(userid int64, xonker string) []*Honk { - rows, err := stmtHonksByXonker.Query(userid, xonker, userid) + rows, err := stmtHonksByXonker.Query(userid, xonker, xonker, userid) return getsomehonks(rows, err) } func gethonksbycombo(userid int64, combo string) []*Honk {

@@ -1550,7 +1550,7 @@ stmtUserHonks = preparetodie(db, selecthonks+"where (whofore = 2 or whofore = ?) and username = ? and dt > ?"+limit)

stmtHonksForUser = preparetodie(db, selecthonks+"where honks.userid = ? and dt > ? and honker in (select xid from honkers where userid = ? and flavor = 'sub' and combos not like '% - %')"+butnotthose+limit) stmtHonksForMe = preparetodie(db, selecthonks+"where honks.userid = ? and dt > ? and whofore = 1"+butnotthose+limit) stmtHonksByHonker = preparetodie(db, selecthonks+"join honkers on honkers.xid = honks.honker where honks.userid = ? and honkers.name = ?"+butnotthose+limit) - stmtHonksByXonker = preparetodie(db, selecthonks+" where honks.userid = ? and honker = ?"+butnotthose+limit) + stmtHonksByXonker = preparetodie(db, selecthonks+" where honks.userid = ? and (honker = ? or oonker = ?)"+butnotthose+limit) stmtHonksByCombo = preparetodie(db, selecthonks+"join honkers on honkers.xid = honks.honker where honks.userid = ? and honkers.combos like ?"+butnotthose+limit) stmtHonksByConvoy = preparetodie(db, selecthonks+"where (honks.userid = ? or (? = -1 and whofore = 2)) and convoy = ?"+limit)