This commit is contained in:
Daniel 2025-01-30 15:06:57 +08:00
parent 4d92d63ba1
commit 693bf7e1ed
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 30 additions and 0 deletions

View file

@ -75,6 +75,16 @@ func DocImageAssets(rootID string) (ret []string, err error) {
return
}
func DocAssets(rootID string) (ret []string, err error) {
tree, err := LoadTreeByBlockID(rootID)
if err != nil {
return
}
ret = assetsLinkDestsInTree(tree)
return
}
func NetAssets2LocalAssets(rootID string, onlyImg bool, originalURL string) (err error) {
tree, err := LoadTreeByBlockID(rootID)
if err != nil {