From c335941d105655cf7f97811201f515d42bcc032a Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Wed, 20 Oct 2021 14:16:46 +0800 Subject: [PATCH] =?UTF-8?q?fix-489=E5=90=8E=E7=AB=AF=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/topic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/topic.go b/models/topic.go index b8d3d9d85..397edd0c3 100644 --- a/models/topic.go +++ b/models/topic.go @@ -178,7 +178,7 @@ func (opts *FindTopicOptions) toConds() builder.Cond { } if opts.Keyword != "" { - cond = cond.And(builder.Like{"topic.name", opts.Keyword}) + cond = cond.And(builder.Like{"topic.name", strings.ToLower(opts.Keyword)}) } return cond