Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: 重构 `文件历史` 查询 https://github.com/siyuan-note/siyuan/issues/6504

Liang Ding923b9b748bbc
diff --git a/kernel/model/history.go b/kernel/model/history.go
index f9271b9a7a..7d800b2eb2 100644
--- a/kernel/model/history.go
+++ b/kernel/model/history.go
@@ -352,6 +352,9 @@ func FullTextSearchHistory(query, box, op string, typ, page int) (ret []string,
if nil != err {
return
}
+ if 1 > len(ret) {
+ ret = []string{}
+ }
if 1 > len(result) {
return
}