diff --git a/src/main/java/run/halo/app/service/impl/PostCategoryServiceImpl.java b/src/main/java/run/halo/app/service/impl/PostCategoryServiceImpl.java index 47c0939f8..b8b717623 100644 --- a/src/main/java/run/halo/app/service/impl/PostCategoryServiceImpl.java +++ b/src/main/java/run/halo/app/service/impl/PostCategoryServiceImpl.java @@ -100,7 +100,7 @@ public class PostCategoryServiceImpl extends AbstractCrudService postIds = postCategoryRepository.findAllCategoryIdsByPostId(categoryId); + Set postIds = postCategoryRepository.findAllPostIdsByCategoryId(categoryId); return postRepository.findAllByIdIn(postIds, pageable); }