An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: The maximum number of tags listed is incorrect https://github.com/siyuan-note/siyuan/issues/11320
Daniel0763b550efcd
diff --git a/kernel/model/tag.go b/kernel/model/tag.goindex b45bfb12d7..0b8fbf09b5 100644--- a/kernel/model/tag.go+++ b/kernel/model/tag.go@@ -226,7 +226,7 @@ func BuildTags() (ret *Tags) {tmp := &Tags{}for _, tag := range tags {*tmp = append(*tmp, tag)- total += countTag(tag)+ countTag(tag, &total)if Conf.FileTree.MaxListCount < total {util.PushMsg(fmt.Sprintf(Conf.Language(243), Conf.FileTree.MaxListCount), 7000)break@@ -237,12 +237,11 @@ func BuildTags() (ret *Tags) {return}-func countTag(tag *Tag) int {- count := 1+func countTag(tag *Tag, total *int) {+ *total += 1for _, child := range tag.tags {- count += countTag(child)+ countTag(child, total)}- return count + tag.Count}func sortTags(tags Tags) {