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

Daniela9caf1f2c7de
diff --git a/kernel/model/tag.go b/kernel/model/tag.go
index d48fe18fec..c12e37f107 100644
--- a/kernel/model/tag.go
+++ b/kernel/model/tag.go
@@ -368,6 +368,8 @@ func labelTags() (ret map[string]Tags) {
for _, tagSpan := range tagSpans {
label := util.UnescapeHTML(tagSpan.Content)
if "" == label {
+ // 历史数据中可能存在标签内容为空的情况,跳过这些数据
+ // Empty tags no longer appear in the tag panel https://github.com/siyuan-note/siyuan/issues/17367
continue
}