From 80faba6c75606d4a3cb41d71c175e27ecb87f830 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 21 Dec 2025 15:10:31 +0800 Subject: [PATCH] :art: Fix https://github.com/siyuan-note/siyuan/issues/16637 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/export.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kernel/model/export.go b/kernel/model/export.go index 87673be34..b3d704a50 100644 --- a/kernel/model/export.go +++ b/kernel/model/export.go @@ -1894,7 +1894,12 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) ( if ast.NodeAttributeView == n.Type { avIDs = append(avIDs, n.AttributeViewID) } + avs := n.IALAttr(av.NodeAttrNameAvs) + if "" == avs { + return ast.WalkContinue + } + for _, avID := range strings.Split(avs, ",") { avIDs = append(avIDs, strings.TrimSpace(avID)) } @@ -1903,6 +1908,10 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) ( } avIDs = gulu.Str.RemoveDuplicatedElem(avIDs) for _, avID := range avIDs { + if !ast.IsNodeIDPattern(avID) { + continue + } + exportAv(avID, exportStorageAvDir, exportDir, assetPathMap) }