fix issue 534

fix #534
pull/866/head
zhaogaolong 2023-04-14 10:43:55 +08:00 committed by GitHub
parent a9e6826ff9
commit bc4cfdbbe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -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
}