mirror of https://github.com/halo-dev/halo
fix: intimate posts should not be searchable in the category list (#1379)
parent
4c68ae9e89
commit
27c715ac7f
|
@ -80,7 +80,7 @@ public class CategoryController {
|
|||
|
||||
Page<Post> postPage =
|
||||
postCategoryService.pagePostBy(category.getId(),
|
||||
Sets.immutableEnumSet(PostStatus.PUBLISHED, PostStatus.INTIMATE), pageable);
|
||||
Sets.immutableEnumSet(PostStatus.PUBLISHED), pageable);
|
||||
return postService.convertToListVo(postPage);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@ public class CategoryModel {
|
|||
Sort.by(DESC, "topPriority", "createTime"));
|
||||
Page<Post> postPage =
|
||||
postCategoryService.pagePostBy(category.getId(), Sets
|
||||
.immutableEnumSet(PostStatus.PUBLISHED, PostStatus.INTIMATE), pageable);
|
||||
.immutableEnumSet(PostStatus.PUBLISHED), pageable);
|
||||
Page<PostListVO> posts = postService.convertToListVo(postPage);
|
||||
|
||||
// Generate meta description.
|
||||
|
|
Loading…
Reference in New Issue