mirror of https://github.com/halo-dev/halo
fix: sequence inconsistency in the comment list on the theme side (#5524)
#### 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 ```pull/5526/head
parent
bf81f29fbc
commit
cb9c3eebd0
|
@ -99,7 +99,7 @@ public class CommentPublicQueryServiceImpl implements CommentPublicQueryService
|
|||
public Mono<ListResult<CommentWithReplyVo>> convertToWithReplyVo(ListResult<CommentVo> 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)
|
||||
|
|
Loading…
Reference in New Issue