From c2855cf469583154595c353937f77de702f997d2 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 27 Jun 2022 17:25:16 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E5=A4=8D=E5=88=B6=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8E=E5=AF=BC=E5=87=BA=E7=88=B6=E7=BA=A7?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=86=8D=E5=AF=BC=E5=85=A5=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20Fix=20https://github.com/siyuan-note/siyuan/issues/5301?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/export.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/kernel/model/export.go b/kernel/model/export.go index fca9dc3f6..df5c2f09e 100644 --- a/kernel/model/export.go +++ b/kernel/model/export.go @@ -531,7 +531,6 @@ func exportMarkdownZip(boxID, baseFolderName string, docPaths []string) (zipPath return } - copiedAssets := hashset.New() luteEngine := util.NewLute() for _, p := range docPaths { docIAL := box.docIAL(p) @@ -572,10 +571,6 @@ func exportMarkdownZip(boxID, baseFolderName string, docPaths []string) (zipPath asset = asset[:strings.LastIndex(asset, "?")] } - if copiedAssets.Contains(asset) { - continue - } - srcPath, err := GetAssetAbsPath(asset) if nil != err { util.LogWarnf("get asset [%s] abs path failed: %s", asset, err) @@ -592,8 +587,6 @@ func exportMarkdownZip(boxID, baseFolderName string, docPaths []string) (zipPath util.LogErrorf("copy asset from [%s] to [%s] failed: %s", srcPath, destPath, err) continue } - - copiedAssets.Add(asset) } }