From d71f488880562e8c4e7d5126af99cd37915b9872 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 1 Jan 2024 17:08:04 +0800 Subject: [PATCH] :bug: The images in the embed blocks are not uploaded to the community hosting https://github.com/siyuan-note/siyuan/issues/10042 --- kernel/model/assets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/assets.go b/kernel/model/assets.go index 3f0a02750..16a0a50bb 100644 --- a/kernel/model/assets.go +++ b/kernel/model/assets.go @@ -1064,7 +1064,7 @@ func assetsLinkDestsInQueryEmbedNodes(tree *parse.Tree) (ret []string) { return ast.WalkContinue } - stmt := n.ChildByType(ast.NodeBlockQueryEmbedScript).TokensStr() + stmt := n.TokensStr() stmt = html.UnescapeString(stmt) stmt = strings.ReplaceAll(stmt, editor.IALValEscNewLine, "\n") sqlBlocks := sql.SelectBlocksRawStmt(stmt, 1, Conf.Search.Limit)