Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: The images in the embed blocks are not uploaded to the community hosting https://github.com/siyuan-note/siyuan/issues/10042

Danield71f48888056
diff --git a/kernel/model/assets.go b/kernel/model/assets.go
index 3f0a02750e..16a0a50bbb 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)