mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: tag ending space
This commit is contained in:
@@ -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(`
|
||||
|
Reference in New Issue
Block a user