mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Show "What's News" after upgrading https://github.com/siyuan-note/siyuan/issues/7902
This commit is contained in:
parent
5a7e436ba5
commit
4cc544f7b5
1 changed files with 7 additions and 3 deletions
|
|
@ -50,11 +50,15 @@ 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) {
|
||||
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)
|
||||
if nil != err {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue