Skip to content

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

:art: Show changelog after upgrading https://github.com/siyuan-note/siyuan/issues/7902

Liang Dinga86c4d346bf8
diff --git a/kernel/api/system.go b/kernel/api/system.go
index d6edba8d27..b2a6c8fd0b 100644
--- a/kernel/api/system.go
+++ b/kernel/api/system.go
@@ -38,7 +38,6 @@ func getChangelog(c *gin.Context) {
defer c.JSON(http.StatusOK, ret)
data := map[string]interface{}{"show": false, "html": ""}
-
ret.Data = data
changelogsDir := filepath.Join(util.WorkingDir, "changelogs")
@@ -54,7 +53,7 @@ func getChangelog(c *gin.Context) {
if !gulu.File.IsExist(changelogPath) {
changelogPath = filepath.Join(changelogsDir, "v"+util.Ver+".md")
if !gulu.File.IsExist(changelogPath) {
- logging.LogWarnf("changelog not found: %s", changelogPath)
+ logging.LogErrorf("changelog not found: %s", changelogPath)
return
}
}