An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/15056
Daniel042927a4ff62
diff --git a/kernel/sql/av_gallery.go b/kernel/sql/av_gallery.goindex dc01ba9ec2..accc09a983 100644--- a/kernel/sql/av_gallery.go+++ b/kernel/sql/av_gallery.go@@ -187,14 +187,15 @@ func fillAttributeViewGalleryCardCover(attrView *av.AttributeView, view *av.View})if "" == galleryCard.CoverURL {- if ast.NodeDocument == node.Type {+ isDoc := ast.NodeDocument == node.Type+ if isDoc {node = node.FirstChild}buf := bytes.Buffer{}for c := node; nil != c; c = c.Next {buf.WriteString(renderBlockDOMByNode(c, luteEngine))- if 1024*4 < buf.Len() {+ if !isDoc || 1024*4 < buf.Len() {break}}