From cb9c3eebd0ecb3f75242347a78f05799a079d6b4 Mon Sep 17 00:00:00 2001 From: guqing <38999863+guqing@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:08:08 +0800 Subject: [PATCH] fix: sequence inconsistency in the comment list on the theme side (#5524) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug /area core /milestone 2.14.x #### What this PR does / why we need it: 修复主题测评论列表顺序不一致的问题 此问题由 #5505 导致,开启了同时返回回复后,评论列表的顺序出现问题 #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../app/theme/finders/impl/CommentPublicQueryServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/main/java/run/halo/app/theme/finders/impl/CommentPublicQueryServiceImpl.java b/application/src/main/java/run/halo/app/theme/finders/impl/CommentPublicQueryServiceImpl.java index 426b11077..ccb04c2e7 100644 --- a/application/src/main/java/run/halo/app/theme/finders/impl/CommentPublicQueryServiceImpl.java +++ b/application/src/main/java/run/halo/app/theme/finders/impl/CommentPublicQueryServiceImpl.java @@ -99,7 +99,7 @@ public class CommentPublicQueryServiceImpl implements CommentPublicQueryService public Mono> convertToWithReplyVo(ListResult comments, int replySize) { return Flux.fromIterable(comments.getItems()) - .flatMap(commentVo -> { + .concatMap(commentVo -> { var commentName = commentVo.getMetadata().getName(); return listReply(commentName, 1, replySize) .map(replyList -> CommentWithReplyVo.from(commentVo)