🐛 Unable to search audio, video blocks by asset path https://github.com/siyuan-note/siyuan/issues/10468

This commit is contained in:
Daniel 2024-02-28 21:08:46 +08:00
parent 1a5355ce27
commit 8d9eafbfd8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 39 additions and 28 deletions

View file

@ -1620,7 +1620,7 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
case av.KeyTypeMAsset: // 导出资源文件列 https://github.com/siyuan-note/siyuan/issues/9919
for _, value := range keyValues.Values {
for _, asset := range value.MAsset {
if !isRelativePath([]byte(asset.Content)) {
if !treenode.IsRelativePath([]byte(asset.Content)) {
continue
}