提交 b96d78ed 编写于 作者: B boojack

fix: tag ending space

上级 164873b3
......@@ -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(`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册