all repos — honk @ 2d8c06c55c737d969aa0b7df8923daef6a47d53a

my fork of honk

no muted threads in search
Ted Unangst tedu@tedunangst.com
Tue, 15 Oct 2019 22:44:29 -0400
commit

2d8c06c55c737d969aa0b7df8923daef6a47d53a

parent

c1038a5d187d0411f4f4dc56c8b8a993a624e0cf

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

jump to
M database.godatabase.go

@@ -196,7 +196,7 @@ return honks

} func gethonksbysearch(userid int64, q string) []*Honk { q = "%" + q + "%" - rows, err := stmtHonksBySearch.Query(userid, q) + rows, err := stmtHonksBySearch.Query(userid, q, userid) honks := getsomehonks(rows, err) return honks }

@@ -647,7 +647,7 @@ stmtHonksISaved = preparetodie(db, selecthonks+"where honks.userid = ? and flags & 4 order by honks.honkid desc")

stmtHonksByHonker = preparetodie(db, selecthonks+"join honkers on (honkers.xid = honks.honker or honkers.xid = honks.oonker) where honks.userid = ? and honkers.name = ?"+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) - stmtHonksBySearch = preparetodie(db, selecthonks+"where honks.userid = ? and noise like ?"+limit) + stmtHonksBySearch = preparetodie(db, selecthonks+"where honks.userid = ? and noise like ?"+butnotthose+limit) stmtHonksByConvoy = preparetodie(db, selecthonks+"where (honks.userid = ? or (? = -1 and whofore = 2)) and convoy = ?"+limit) stmtHonksByOntology = preparetodie(db, selecthonks+"join onts on honks.honkid = onts.honkid where onts.ontology = ? and (honks.userid = ? or (? = -1 and honks.whofore = 2))"+limit)