diff --git a/src/main/java/run/halo/app/content/impl/PostServiceImpl.java b/src/main/java/run/halo/app/content/impl/PostServiceImpl.java index 3c5f0984c..60419200c 100644 --- a/src/main/java/run/halo/app/content/impl/PostServiceImpl.java +++ b/src/main/java/run/halo/app/content/impl/PostServiceImpl.java @@ -165,7 +165,7 @@ public class PostServiceImpl implements PostService { private Mono setTags(List tagNames, ListedPost post) { return listTags(tagNames) - .collectSortedList() + .collectList() .doOnNext(post::setTags) .map(tags -> post) .switchIfEmpty(Mono.defer(() -> Mono.just(post))); @@ -173,7 +173,7 @@ public class PostServiceImpl implements PostService { private Mono setCategories(List categoryNames, ListedPost post) { return listCategories(categoryNames) - .collectSortedList() + .collectList() .doOnNext(post::setCategories) .map(categories -> post) .switchIfEmpty(Mono.defer(() -> Mono.just(post))); @@ -181,7 +181,7 @@ public class PostServiceImpl implements PostService { private Mono setContributors(List contributorNames, ListedPost post) { return listContributors(contributorNames) - .collectSortedList() + .collectList() .doOnNext(post::setContributors) .map(contributors -> post) .switchIfEmpty(Mono.defer(() -> Mono.just(post)));