mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-25 02:44:52 +08:00
Merge branch 'master' into master
This commit is contained in:
@@ -240,6 +240,17 @@ func (m *BookResult) ToBookResult(book Book) *BookResult {
|
||||
m.ItemName = item.ItemName
|
||||
}
|
||||
}
|
||||
if m.CommentStatus == "closed" {
|
||||
m.IsDisplayComment = false
|
||||
} else if m.CommentStatus == "open" {
|
||||
m.IsDisplayComment = true
|
||||
} else if m.CommentStatus == "registered_only" {
|
||||
// todo
|
||||
} else if m.CommentStatus == "group_only" {
|
||||
// todo
|
||||
} else {
|
||||
m.IsDisplayComment = false;
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user