mirror of https://github.com/halo-dev/halo
Merge pull request #5279 from guqing/bugfix/order-for-contributors
fix: the order of contributors for posts is not fixedpull/5282/head
commit
c792cef52f
|
@ -170,7 +170,7 @@ public class PostServiceImpl extends AbstractContentService implements PostServi
|
|||
return Flux.empty();
|
||||
}
|
||||
return Flux.fromIterable(usernames)
|
||||
.flatMap(userService::getUserOrGhost)
|
||||
.concatMap(userService::getUserOrGhost)
|
||||
.map(user -> {
|
||||
Contributor contributor = new Contributor();
|
||||
contributor.setName(user.getMetadata().getName());
|
||||
|
|
Loading…
Reference in New Issue