🎨 Display document title in data history preview area https://github.com/siyuan-note/siyuan/issues/12948

This commit is contained in:
Daniel 2024-10-28 10:20:33 +08:00
parent face9918f1
commit a15899d421
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 5 additions and 2 deletions

View file

@ -70,7 +70,7 @@ func openRepoSnapshotDoc(c *gin.Context) {
}
id := arg["id"].(string)
content, isProtyleDoc, updated, err := model.OpenRepoSnapshotDoc(id)
title, content, isProtyleDoc, updated, err := model.OpenRepoSnapshotDoc(id)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
@ -78,6 +78,7 @@ func openRepoSnapshotDoc(c *gin.Context) {
}
ret.Data = map[string]interface{}{
"title": title,
"content": content,
"isProtyleDoc": isProtyleDoc,
"updated": updated,