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: Backlink count at the doc block title including sub-blocks https://github.com/siyuan-note/siyuan/issues/13791
Daniel3ebcf5fcb923
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.tsindex b67692d58b..2737c31a12 100644--- a/app/src/dialog/processSystem.ts+++ b/app/src/dialog/processSystem.ts@@ -173,10 +173,7 @@ export const setDefRefCount = (data: {rootRefIDs: string[]}) => {getAllEditor().forEach(editor => {- if (editor.protyle.block.rootID === data.rootID) {- if (!editor.protyle.title) {- return;- }+ if (editor.protyle.block.rootID === data.rootID && editor.protyle.title) {const attrElement = editor.protyle.title.element.querySelector(".protyle-attr");const countElement = attrElement.querySelector(".protyle-attr--refcount");if (countElement) {@@ -189,7 +186,6 @@ export const setDefRefCount = (data: {} else if (data.rootRefCount > 0) {attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids="["${data.rootID}"]" data-id="${JSON.stringify(data.rootRefIDs)}" style="">${data.rootRefCount}</div>`);}- return;}if (data.rootID === data.blockID) {return;