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: Avoid restricted popover requests in publish mode
Danield6eb1878d99f
diff --git a/app/src/block/popover.ts b/app/src/block/popover.tsindex d1ac861228..3d1d2d3dc6 100644--- a/app/src/block/popover.ts+++ b/app/src/block/popover.ts@@ -110,7 +110,7 @@ export const initBlockPopover = (app: App) => {tip = `<span style="word-break: break-all">${href.substring(0, Constants.SIZE_TITLE)}</span>`;}const title = aElement.getAttribute("data-title");- if (tip && isLocalPath(href) && !aElement.classList.contains("b3-tooltips")) {+ if (!window.siyuan.isPublish && tip && isLocalPath(href) && !aElement.classList.contains("b3-tooltips")) {let assetTip = tip;tooltipAbortController = new AbortController();const signal = tooltipAbortController.signal;@@ -409,6 +409,7 @@ const getTarget = (event: MouseEvent & { target: HTMLElement }, aElement: false}}if (!popoverTargetElement || window.siyuan.altIsPressed ||+ (window.siyuan.isPublish && popoverTargetElement.dataset.popoverUrl === "/api/av/getMirrorDatabaseBlocks") ||(window.siyuan.config.editor.floatWindowMode === 0 && window.siyuan.ctrlIsPressed) ||(popoverTargetElement && popoverTargetElement.getAttribute("prevent-popover") === "true")) {return false;