Skip to content

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

:art: Show "What's News" after upgrading https://github.com/siyuan-note/siyuan/issues/7902

Liang Ding4cc544f7b5c9
diff --git a/kernel/api/system.go b/kernel/api/system.go
index dd3da55309..02846f0a0f 100644
--- a/kernel/api/system.go
+++ b/kernel/api/system.go
@@ -50,10 +50,14 @@ func getChangelog(c *gin.Context) {
return
}
- changelogPath := filepath.Join(changelogsDir, "v"+util.Ver+".md")
+ changelogPath := filepath.Join(changelogsDir, "v"+util.Ver+model.Conf.Lang+".md")
+
if !gulu.File.IsExist(changelogPath) {
- logging.LogWarnf("changelog not found: %s", changelogPath)
- return
+ changelogPath = filepath.Join(changelogsDir, "v"+util.Ver+".md")
+ if !gulu.File.IsExist(changelogPath) {
+ logging.LogWarnf("changelog not found: %s", changelogPath)
+ return
+ }
}
contentData, err := os.ReadFile(changelogPath)