From bd80e1b4a8306939d7384e8319164fac7e22ef89 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 29 Jul 2023 21:56:45 -0400 Subject: [PATCH] search precis too --- database.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database.go b/database.go index 28e42f2..c806d3f 100644 --- a/database.go +++ b/database.go @@ -342,7 +342,8 @@ func gethonksbysearch(userid int64, q string, wanted int64) []*Honk { continue } t = "%" + t + "%" - queries = append(queries, "noise"+negate+"like ?") + queries = append(queries, negate+"(noise like ? or precis like ?)") + params = append(params, t) params = append(params, t) }