mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 02:47:02 +00:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -104,7 +104,7 @@ func InsertLocalAssets(id string, assetAbsPaths []string, isUpload bool) (succMa
|
||||
}
|
||||
|
||||
if "" != existAssetPath && !strings.HasPrefix(hash, "random_") {
|
||||
succMap[baseName] = existAssetPath
|
||||
succMap[baseName] = strings.TrimPrefix(existAssetPath, "/")
|
||||
} else {
|
||||
fName = util.AssetName(fName, ast.NewNodeID())
|
||||
writePath := filepath.Join(assetsDirPath, fName)
|
||||
|
||||
Reference in New Issue
Block a user