From 40ab30dee6acc7206065ac46585a61306b8d25f4 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 17 Oct 2019 21:59:17 -0400 Subject: [PATCH] fix a dumb search bug --- database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.go b/database.go index 1c86903..f2978e2 100644 --- a/database.go +++ b/database.go @@ -219,7 +219,7 @@ func gethonksbysearch(userid int64, q string) []*Honk { withhonker = 1 continue } - if q[0] != '%' { + if len(q) != 1 { q += " " } q += t