Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/5617

Vanessa9fb4d9da2ad3
diff --git a/app/src/util/mount.ts b/app/src/util/mount.ts
index 923eda7732..2f815b0e36 100644
--- a/app/src/util/mount.ts
+++ b/app/src/util/mount.ts
@@ -20,14 +20,16 @@ export const newDailyNote = () => {
}
});
fetchPost("/api/filetree/createDailyNote", {
- notebook: notebookId
+ notebook: notebookId,
+ app: Constants.SIYUAN_APPID,
});
return;
}
const localNotebookId = window.localStorage.getItem(Constants.LOCAL_DAILYNOTEID);
if (localNotebookId && getNotebookName(localNotebookId) && !isMobile()) {
fetchPost("/api/filetree/createDailyNote", {
- notebook:localNotebookId
+ notebook:localNotebookId,
+ app: Constants.SIYUAN_APPID,
});
} else {
let optionsHTML = "";
@@ -56,7 +58,8 @@ export const newDailyNote = () => {
const notebook = selectElement.value;
window.localStorage.setItem(Constants.LOCAL_DAILYNOTEID, notebook);
fetchPost("/api/filetree/createDailyNote", {
- notebook
+ notebook,
+ app: Constants.SIYUAN_APPID,
});
dialog.destroy();
});
diff --git a/app/src/util/onGetConfig.ts b/app/src/util/onGetConfig.ts
index 2deaa8e192..197e05fd6f 100644
--- a/app/src/util/onGetConfig.ts
+++ b/app/src/util/onGetConfig.ts
@@ -267,7 +267,8 @@ const initBar = () => {
label: item.name,
click: () => {
fetchPost("/api/filetree/createDailyNote", {
- notebook: item.id
+ notebook: item.id,
+ app: Constants.SIYUAN_APPID,
});
window.localStorage.setItem(Constants.LOCAL_DAILYNOTEID, item.id);
}