Skip to content

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

:art: Improve the mouse hove data sync button information on the desktop and browser https://github.com/siyuan-note/siyuan/issues/8521

Daniel1b8adb473ce3
diff --git a/kernel/api/sync.go b/kernel/api/sync.go
index 9c1a8c25df..ba5c44733d 100644
--- a/kernel/api/sync.go
+++ b/kernel/api/sync.go
@@ -30,14 +30,14 @@ func getSyncInfo(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
+ stat := model.Conf.Sync.Stat
if !model.Conf.Sync.Enabled {
- ret.Msg = model.Conf.Language(53)
- return
+ stat = model.Conf.Language(53)
}
ret.Data = map[string]interface{}{
"synced": model.Conf.Sync.Synced,
- "stat": model.Conf.Sync.Stat,
+ "stat": stat,
"kernels": model.GetOnlineKernels(),
}
}