🎨 Distinguishing between a referenced definition block that does not exist or one that is not indexed https://github.com/siyuan-note/siyuan/issues/16850

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-17 14:24:25 +08:00
parent ddf35ec7df
commit 05380060fc
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
18 changed files with 166 additions and 56 deletions

View file

@ -665,6 +665,10 @@ func getBlockInfo(c *gin.Context) {
ret.Code = -1
ret.Msg = model.Conf.Language(275)
return
} else if errors.Is(err, model.ErrBoxUnindexed) {
ret.Code = -1
ret.Msg = ""
return
}
block, _ := model.GetBlock(id, tree)