Skip to content

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

:art: Improve inbox move https://ld246.com/article/1732765275719

Daniel5dc73d0be6b1
diff --git a/app/src/layout/dock/Inbox.ts b/app/src/layout/dock/Inbox.ts
index 78db88c195..be95a1739e 100644
--- a/app/src/layout/dock/Inbox.ts
+++ b/app/src/layout/dock/Inbox.ts
@@ -339,11 +339,15 @@ ${data.shorthandContent}
id: item
}, (response) => {
this.data[response.data.oId] = response.data;
+ let md = response.data.shorthandMd;
+ if ("" === md && "" === response.data.shorthandContent && "" != response.data.shorthandURL) {
+ md = "[" + response.data.shorthandTitle + "](" + response.data.shorthandURL + ")";
+ }
fetchPost("/api/filetree/createDoc", {
notebook: toNotebook[0],
path: pathPosix().join(getDisplayName(toPath[0], false, true), Lute.NewNodeID() + ".sy"),
title: replaceFileName(response.data.shorthandTitle),
- md: response.data.shorthandMd,
+ md: md,
}, () => {
this.remove(item);
});