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