🎨 数据历史文档支持只读可视化预览 https://github.com/siyuan-note/siyuan/issues/5735

This commit is contained in:
Liang Ding 2022-08-31 00:00:21 +08:00
parent 668cc4b17b
commit 0457172f9b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -279,11 +279,11 @@ func FullTextSearchHistory(query, box, op string, typ, page int) (ret []*History
} else {
stmt += "1=1"
}
if "all" != op {
stmt += " AND op = '" + op + "'"
}
if HistoryTypeDoc == typ {
if "all" != op {
stmt += " AND op = '" + op + "'"
}
stmt += " AND path LIKE '%/" + box + "/%' AND path LIKE '%.sy'"
} else if HistoryTypeAsset == typ {
stmt += " AND path LIKE '%/assets/%'"