Skip to content

Commit

Permalink
fix: intimate posts should not be searchable in the category list (ha…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoguhong authored May 20, 2021
1 parent 4c68ae9 commit 27c715a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public Page<PostListVO> listPostsBy(@PathVariable("slug") String slug,

Page<Post> postPage =
postCategoryService.pagePostBy(category.getId(),
Sets.immutableEnumSet(PostStatus.PUBLISHED, PostStatus.INTIMATE), pageable);
Sets.immutableEnumSet(PostStatus.PUBLISHED), pageable);
return postService.convertToListVo(postPage);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public String listPost(Model model, String slug, Integer page) {
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.
Expand Down

0 comments on commit 27c715a

Please sign in to comment.