Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: tag ending space

boojackb96d78ed19b6
diff --git a/store/memo.go b/store/memo.go
index 76cdeb3e4..8e2815166 100644
--- a/store/memo.go
+++ b/store/memo.go
@@ -210,7 +210,7 @@ func findMemoRawList(db *sql.DB, find *api.MemoFind) ([]*memoRaw, error) {
where = append(where, "id in (SELECT memo_id FROM memo_organizer WHERE pinned = 1 AND user_id = memo.creator_id )")
}
if v := find.Tag; v != nil {
- where, args = append(where, "content LIKE ?"), append(args, "%#"+*v+"%")
+ where, args = append(where, "content LIKE ?"), append(args, "%#"+*v+" %")
}
rows, err := db.Query(`