Skip to content

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

:art: Empty tags no longer appear in the tag panel https://github.com/siyuan-note/siyuan/issues/17367

Danield8e33acb4849
diff --git a/kernel/model/tag.go b/kernel/model/tag.go
index fa4197e96e..d48fe18fec 100644
--- a/kernel/model/tag.go
+++ b/kernel/model/tag.go
@@ -367,6 +367,10 @@ func labelTags() (ret map[string]Tags) {
tagSpans := sql.QueryTagSpans("")
for _, tagSpan := range tagSpans {
label := util.UnescapeHTML(tagSpan.Content)
+ if "" == label {
+ continue
+ }
+
if _, ok := ret[label]; ok {
ret[label] = append(ret[label], &Tag{})
} else {