mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10: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,10 +50,14 @@ func getChangelog(c *gin.Context) {
|
||||||
return
|
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) {
|
if !gulu.File.IsExist(changelogPath) {
|
||||||
logging.LogWarnf("changelog not found: %s", changelogPath)
|
changelogPath = filepath.Join(changelogsDir, "v"+util.Ver+".md")
|
||||||
return
|
if !gulu.File.IsExist(changelogPath) {
|
||||||
|
logging.LogWarnf("changelog not found: %s", changelogPath)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contentData, err := os.ReadFile(changelogPath)
|
contentData, err := os.ReadFile(changelogPath)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue