mirror of https://github.com/mindoc-org/mindoc.git
parent
a9e6826ff9
commit
bc4cfdbbe6
|
@ -214,6 +214,7 @@ func (m *BookResult) ToBookResult(book Book) *BookResult {
|
|||
m.IsDownload = book.IsDownload == 0
|
||||
m.AutoSave = book.AutoSave == 1
|
||||
m.ItemId = book.ItemId
|
||||
m.RoleId = conf.BookRoleNoSpecific
|
||||
|
||||
if book.Theme == "" {
|
||||
m.Theme = "default"
|
||||
|
@ -249,8 +250,9 @@ func (m *BookResult) ToBookResult(book Book) *BookResult {
|
|||
} else if m.CommentStatus == "group_only" {
|
||||
// todo
|
||||
} else {
|
||||
m.IsDisplayComment = false;
|
||||
m.IsDisplayComment = false
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue