🎨 The old version of the application no longer supports opening the new version of the document https://github.com/siyuan-note/siyuan/issues/16505

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-03 22:03:13 +08:00
parent 9e075581ff
commit b5c84f2354
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
21 changed files with 114 additions and 41 deletions

View file

@ -28,6 +28,7 @@ import (
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/filesys"
"github.com/siyuan-note/siyuan/kernel/model"
"github.com/siyuan-note/siyuan/kernel/treenode"
"github.com/siyuan-note/siyuan/kernel/util"
)
@ -660,6 +661,10 @@ func getBlockInfo(c *gin.Context) {
ret.Code = 3
ret.Msg = model.Conf.Language(56)
return
} else if errors.Is(err, treenode.ErrSpecTooNew) {
ret.Code = -1
ret.Msg = model.Conf.Language(275)
return
}
block, _ := model.GetBlock(id, tree)