Skip to content

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

:art: Improve missing assets checking https://github.com/siyuan-note/siyuan/issues/13891

Daniel197e86476a44
diff --git a/kernel/model/assets.go b/kernel/model/assets.go
index 915a0e0398..4741f8351a 100644
--- a/kernel/model/assets.go
+++ b/kernel/model/assets.go
@@ -965,6 +965,15 @@ func MissingAssets() (ret []string) {
continue
}
+ if strings.Contains(strings.ToLower(dest), ".pdf/") {
+ if idx := strings.LastIndex(dest, "/"); -1 < idx {
+ if ast.IsNodeIDPattern(dest[idx+1:]) {
+ // PDF 标注不计入 https://github.com/siyuan-note/siyuan/issues/13891
+ continue
+ }
+ }
+ }
+
if "" == assetsPathMap[dest] {
if strings.HasPrefix(dest, "assets/.") {
// Assets starting with `.` should not be considered missing assets https://github.com/siyuan-note/siyuan/issues/8821