From 7390210dd33ea0272a390eb0d8cb212f18a59d92 Mon Sep 17 00:00:00 2001 From: hayashiki Date: Fri, 10 Dec 2021 21:34:23 +0900 Subject: [PATCH] Fix search bug --- post.go | 2 +- version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/post.go b/post.go index def1d9a..bf423c3 100644 --- a/post.go +++ b/post.go @@ -89,7 +89,7 @@ type PostListOptions struct { func (opts *PostListOptions) SetDefaultSort() { if !strings.Contains(opts.Q, "desc:") { - opts.Q += "+desc:score" + opts.Q += " desc:score" } } diff --git a/version.go b/version.go index 9af088f..e30575e 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ package docbase const ( - version = "1.0.2" + version = "1.0.3" revision = "HEAD" )