mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Show "What's News" after upgrading https://github.com/siyuan-note/siyuan/issues/7902
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user