An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Remove asset content indexes when deleting asset files https://github.com/siyuan-note/siyuan/issues/9010
Danielca73a70112a6
diff --git a/kernel/model/assets_watcher.go b/kernel/model/assets_watcher.goindex eeb69a5dfc..937860b8d1 100644--- a/kernel/model/assets_watcher.go+++ b/kernel/model/assets_watcher.go@@ -74,7 +74,7 @@ func watchAssets() {lastEvent = eventtimer.Reset(time.Millisecond * 100)- if lastEvent.Op&fsnotify.Rename == fsnotify.Rename {+ if lastEvent.Op&fsnotify.Rename == fsnotify.Rename || lastEvent.Op&fsnotify.Write == fsnotify.Write {IndexAssetContent(lastEvent.Name)} else if lastEvent.Op&fsnotify.Remove == fsnotify.Remove {RemoveIndexAssetContent(lastEvent.Name)@@ -87,7 +87,6 @@ func watchAssets() {case <-timer.C://logging.LogInfof("assets changed: %s", lastEvent)if lastEvent.Op&fsnotify.Write == fsnotify.Write {- // 外部修改已有资源文件后纳入云端同步 https://github.com/siyuan-note/siyuan/issues/4694IncSync()}